✅ Fix chat interface - restore continuous conversation flow
🎯 Major improvements to MissionControl component: - Always keep input field visible and functional after AI responses - Auto-clear input after submitting questions for better UX - Add dynamic visual indicators (first question vs follow-up) - Improve response layout with clear separation and hints - Enable proper chat-like experience for continuous learning 🌟 Additional enhancements: - Better language-specific messaging throughout interface - Clearer visual hierarchy between input and response areas - Intuitive flow that guides users to ask follow-up questions - Maintains responsive design and accessibility 🔧 Technical changes: - Enhanced MissionControl state management - Improved component layout and styling - Better TypeScript integration across components - Updated tsconfig for stricter type checking
This commit is contained in:
27
node_modules/openai/beta/realtime/websocket.js
generated
vendored
27
node_modules/openai/beta/realtime/websocket.js
generated
vendored
@@ -1,17 +1,40 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.OpenAIRealtimeWebSocket = void 0;
|
||||
const index_1 = require("../../index.js");
|
||||
const error_1 = require("../../error.js");
|
||||
const Core = __importStar(require("../../core.js"));
|
||||
const internal_base_1 = require("./internal-base.js");
|
||||
const detect_platform_1 = require("../../internal/detect-platform.js");
|
||||
class OpenAIRealtimeWebSocket extends internal_base_1.OpenAIRealtimeEmitter {
|
||||
constructor(props, client) {
|
||||
super();
|
||||
const dangerouslyAllowBrowser = props.dangerouslyAllowBrowser ??
|
||||
client?._options?.dangerouslyAllowBrowser ??
|
||||
(client?.apiKey.startsWith('ek_') ? true : null);
|
||||
if (!dangerouslyAllowBrowser && (0, detect_platform_1.isRunningInBrowser)()) {
|
||||
if (!dangerouslyAllowBrowser && Core.isRunningInBrowser()) {
|
||||
throw new error_1.OpenAIError("It looks like you're running in a browser-like environment.\n\nThis is disabled by default, as it risks exposing your secret API credentials to attackers.\n\nYou can avoid this error by creating an ephemeral session token:\nhttps://platform.openai.com/docs/api-reference/realtime-sessions\n");
|
||||
}
|
||||
client ?? (client = new index_1.OpenAI({ dangerouslyAllowBrowser }));
|
||||
|
||||
Reference in New Issue
Block a user