✅ 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:
47
node_modules/openai/resources/beta/threads/threads.mjs
generated
vendored
47
node_modules/openai/resources/beta/threads/threads.mjs
generated
vendored
@@ -1,12 +1,11 @@
|
||||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
||||
import { APIResource } from "../../../core/resource.mjs";
|
||||
import * as MessagesAPI from "./messages.mjs";
|
||||
import { Messages, } from "./messages.mjs";
|
||||
import * as RunsAPI from "./runs/runs.mjs";
|
||||
import { Runs, } from "./runs/runs.mjs";
|
||||
import { buildHeaders } from "../../../internal/headers.mjs";
|
||||
import { APIResource } from "../../../resource.mjs";
|
||||
import { isRequestOptions } from "../../../core.mjs";
|
||||
import { AssistantStream } from "../../../lib/AssistantStream.mjs";
|
||||
import { path } from "../../../internal/utils/path.mjs";
|
||||
import * as MessagesAPI from "./messages.mjs";
|
||||
import { Messages, MessagesPage, } from "./messages.mjs";
|
||||
import * as RunsAPI from "./runs/runs.mjs";
|
||||
import { Runs, RunsPage, } from "./runs/runs.mjs";
|
||||
/**
|
||||
* @deprecated The Assistants API is deprecated in favor of the Responses API
|
||||
*/
|
||||
@@ -16,16 +15,14 @@ export class Threads extends APIResource {
|
||||
this.runs = new RunsAPI.Runs(this._client);
|
||||
this.messages = new MessagesAPI.Messages(this._client);
|
||||
}
|
||||
/**
|
||||
* Create a thread.
|
||||
*
|
||||
* @deprecated The Assistants API is deprecated in favor of the Responses API
|
||||
*/
|
||||
create(body = {}, options) {
|
||||
if (isRequestOptions(body)) {
|
||||
return this.create({}, body);
|
||||
}
|
||||
return this._client.post('/threads', {
|
||||
body,
|
||||
...options,
|
||||
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
||||
headers: { 'OpenAI-Beta': 'assistants=v2', ...options?.headers },
|
||||
});
|
||||
}
|
||||
/**
|
||||
@@ -33,10 +30,10 @@ export class Threads extends APIResource {
|
||||
*
|
||||
* @deprecated The Assistants API is deprecated in favor of the Responses API
|
||||
*/
|
||||
retrieve(threadID, options) {
|
||||
return this._client.get(path `/threads/${threadID}`, {
|
||||
retrieve(threadId, options) {
|
||||
return this._client.get(`/threads/${threadId}`, {
|
||||
...options,
|
||||
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
||||
headers: { 'OpenAI-Beta': 'assistants=v2', ...options?.headers },
|
||||
});
|
||||
}
|
||||
/**
|
||||
@@ -44,11 +41,11 @@ export class Threads extends APIResource {
|
||||
*
|
||||
* @deprecated The Assistants API is deprecated in favor of the Responses API
|
||||
*/
|
||||
update(threadID, body, options) {
|
||||
return this._client.post(path `/threads/${threadID}`, {
|
||||
update(threadId, body, options) {
|
||||
return this._client.post(`/threads/${threadId}`, {
|
||||
body,
|
||||
...options,
|
||||
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
||||
headers: { 'OpenAI-Beta': 'assistants=v2', ...options?.headers },
|
||||
});
|
||||
}
|
||||
/**
|
||||
@@ -56,17 +53,17 @@ export class Threads extends APIResource {
|
||||
*
|
||||
* @deprecated The Assistants API is deprecated in favor of the Responses API
|
||||
*/
|
||||
delete(threadID, options) {
|
||||
return this._client.delete(path `/threads/${threadID}`, {
|
||||
del(threadId, options) {
|
||||
return this._client.delete(`/threads/${threadId}`, {
|
||||
...options,
|
||||
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
||||
headers: { 'OpenAI-Beta': 'assistants=v2', ...options?.headers },
|
||||
});
|
||||
}
|
||||
createAndRun(body, options) {
|
||||
return this._client.post('/threads/runs', {
|
||||
body,
|
||||
...options,
|
||||
headers: buildHeaders([{ 'OpenAI-Beta': 'assistants=v2' }, options?.headers]),
|
||||
headers: { 'OpenAI-Beta': 'assistants=v2', ...options?.headers },
|
||||
stream: body.stream ?? false,
|
||||
});
|
||||
}
|
||||
@@ -77,7 +74,7 @@ export class Threads extends APIResource {
|
||||
*/
|
||||
async createAndRunPoll(body, options) {
|
||||
const run = await this.createAndRun(body, options);
|
||||
return await this.runs.poll(run.id, { thread_id: run.thread_id }, options);
|
||||
return await this.runs.poll(run.thread_id, run.id, options);
|
||||
}
|
||||
/**
|
||||
* Create a thread and stream the run back
|
||||
@@ -87,5 +84,7 @@ export class Threads extends APIResource {
|
||||
}
|
||||
}
|
||||
Threads.Runs = Runs;
|
||||
Threads.RunsPage = RunsPage;
|
||||
Threads.Messages = Messages;
|
||||
Threads.MessagesPage = MessagesPage;
|
||||
//# sourceMappingURL=threads.mjs.map
|
||||
Reference in New Issue
Block a user