✅ 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:
11
node_modules/openai/helpers/zod.js
generated
vendored
11
node_modules/openai/helpers/zod.js
generated
vendored
@@ -1,9 +1,6 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.zodResponseFormat = zodResponseFormat;
|
||||
exports.zodTextFormat = zodTextFormat;
|
||||
exports.zodFunction = zodFunction;
|
||||
exports.zodResponsesFunction = zodResponsesFunction;
|
||||
exports.zodResponsesFunction = exports.zodFunction = exports.zodTextFormat = exports.zodResponseFormat = void 0;
|
||||
const parser_1 = require("../lib/parser.js");
|
||||
const zod_to_json_schema_1 = require("../_vendor/zod-to-json-schema/index.js");
|
||||
const ResponsesParser_1 = require("../lib/ResponsesParser.js");
|
||||
@@ -26,7 +23,7 @@ function zodToJsonSchema(schema, options) {
|
||||
* the given Zod object.
|
||||
*
|
||||
* ```ts
|
||||
* const completion = await client.chat.completions.parse({
|
||||
* const completion = await client.beta.chat.completions.parse({
|
||||
* model: 'gpt-4o-2024-08-06',
|
||||
* messages: [
|
||||
* { role: 'system', content: 'You are a helpful math tutor.' },
|
||||
@@ -64,6 +61,7 @@ function zodResponseFormat(zodObject, name, props) {
|
||||
},
|
||||
}, (content) => zodObject.parse(JSON.parse(content)));
|
||||
}
|
||||
exports.zodResponseFormat = zodResponseFormat;
|
||||
function zodTextFormat(zodObject, name, props) {
|
||||
return (0, parser_1.makeParseableTextFormat)({
|
||||
type: 'json_schema',
|
||||
@@ -73,6 +71,7 @@ function zodTextFormat(zodObject, name, props) {
|
||||
schema: zodToJsonSchema(zodObject, { name }),
|
||||
}, (content) => zodObject.parse(JSON.parse(content)));
|
||||
}
|
||||
exports.zodTextFormat = zodTextFormat;
|
||||
/**
|
||||
* Creates a chat completion `function` tool that can be invoked
|
||||
* automatically by the chat completion `.runTools()` method or automatically
|
||||
@@ -93,6 +92,7 @@ function zodFunction(options) {
|
||||
parser: (args) => options.parameters.parse(JSON.parse(args)),
|
||||
});
|
||||
}
|
||||
exports.zodFunction = zodFunction;
|
||||
function zodResponsesFunction(options) {
|
||||
return (0, ResponsesParser_1.makeParseableResponseTool)({
|
||||
type: 'function',
|
||||
@@ -105,4 +105,5 @@ function zodResponsesFunction(options) {
|
||||
parser: (args) => options.parameters.parse(JSON.parse(args)),
|
||||
});
|
||||
}
|
||||
exports.zodResponsesFunction = zodResponsesFunction;
|
||||
//# sourceMappingURL=zod.js.map
|
||||
Reference in New Issue
Block a user