✅ 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:
57
node_modules/openai/resources/beta/assistants.js
generated
vendored
57
node_modules/openai/resources/beta/assistants.js
generated
vendored
@@ -1,11 +1,11 @@
|
||||
"use strict";
|
||||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Assistants = void 0;
|
||||
const resource_1 = require("../../core/resource.js");
|
||||
const pagination_1 = require("../../core/pagination.js");
|
||||
const headers_1 = require("../../internal/headers.js");
|
||||
const path_1 = require("../../internal/utils/path.js");
|
||||
exports.AssistantsPage = exports.Assistants = void 0;
|
||||
const resource_1 = require("../../resource.js");
|
||||
const core_1 = require("../../core.js");
|
||||
const pagination_1 = require("../../pagination.js");
|
||||
const AssistantStream_1 = require("../../lib/AssistantStream.js");
|
||||
class Assistants extends resource_1.APIResource {
|
||||
/**
|
||||
* Create an assistant with a model and instructions.
|
||||
@@ -21,7 +21,7 @@ class Assistants extends resource_1.APIResource {
|
||||
return this._client.post('/assistants', {
|
||||
body,
|
||||
...options,
|
||||
headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
||||
headers: { 'OpenAI-Beta': 'assistants=v2', ...options?.headers },
|
||||
});
|
||||
}
|
||||
/**
|
||||
@@ -34,10 +34,10 @@ class Assistants extends resource_1.APIResource {
|
||||
* );
|
||||
* ```
|
||||
*/
|
||||
retrieve(assistantID, options) {
|
||||
return this._client.get((0, path_1.path) `/assistants/${assistantID}`, {
|
||||
retrieve(assistantId, options) {
|
||||
return this._client.get(`/assistants/${assistantId}`, {
|
||||
...options,
|
||||
headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
||||
headers: { 'OpenAI-Beta': 'assistants=v2', ...options?.headers },
|
||||
});
|
||||
}
|
||||
/**
|
||||
@@ -50,29 +50,21 @@ class Assistants extends resource_1.APIResource {
|
||||
* );
|
||||
* ```
|
||||
*/
|
||||
update(assistantID, body, options) {
|
||||
return this._client.post((0, path_1.path) `/assistants/${assistantID}`, {
|
||||
update(assistantId, body, options) {
|
||||
return this._client.post(`/assistants/${assistantId}`, {
|
||||
body,
|
||||
...options,
|
||||
headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
||||
headers: { 'OpenAI-Beta': 'assistants=v2', ...options?.headers },
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Returns a list of assistants.
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* // Automatically fetches more pages as needed.
|
||||
* for await (const assistant of client.beta.assistants.list()) {
|
||||
* // ...
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
list(query = {}, options) {
|
||||
return this._client.getAPIList('/assistants', (pagination_1.CursorPage), {
|
||||
if ((0, core_1.isRequestOptions)(query)) {
|
||||
return this.list({}, query);
|
||||
}
|
||||
return this._client.getAPIList('/assistants', AssistantsPage, {
|
||||
query,
|
||||
...options,
|
||||
headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
||||
headers: { 'OpenAI-Beta': 'assistants=v2', ...options?.headers },
|
||||
});
|
||||
}
|
||||
/**
|
||||
@@ -80,16 +72,21 @@ class Assistants extends resource_1.APIResource {
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* const assistantDeleted =
|
||||
* await client.beta.assistants.delete('assistant_id');
|
||||
* const assistantDeleted = await client.beta.assistants.del(
|
||||
* 'assistant_id',
|
||||
* );
|
||||
* ```
|
||||
*/
|
||||
delete(assistantID, options) {
|
||||
return this._client.delete((0, path_1.path) `/assistants/${assistantID}`, {
|
||||
del(assistantId, options) {
|
||||
return this._client.delete(`/assistants/${assistantId}`, {
|
||||
...options,
|
||||
headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
||||
headers: { 'OpenAI-Beta': 'assistants=v2', ...options?.headers },
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.Assistants = Assistants;
|
||||
class AssistantsPage extends pagination_1.CursorPage {
|
||||
}
|
||||
exports.AssistantsPage = AssistantsPage;
|
||||
Assistants.AssistantsPage = AssistantsPage;
|
||||
//# sourceMappingURL=assistants.js.map
|
||||
Reference in New Issue
Block a user