✅ 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:
74
node_modules/openai/resources/fine-tuning/jobs/jobs.mjs
generated
vendored
74
node_modules/openai/resources/fine-tuning/jobs/jobs.mjs
generated
vendored
@@ -1,9 +1,9 @@
|
||||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
||||
import { APIResource } from "../../../core/resource.mjs";
|
||||
import { APIResource } from "../../../resource.mjs";
|
||||
import { isRequestOptions } from "../../../core.mjs";
|
||||
import * as CheckpointsAPI from "./checkpoints.mjs";
|
||||
import { Checkpoints, } from "./checkpoints.mjs";
|
||||
import { CursorPage } from "../../../core/pagination.mjs";
|
||||
import { path } from "../../../internal/utils/path.mjs";
|
||||
import { Checkpoints, FineTuningJobCheckpointsPage, } from "./checkpoints.mjs";
|
||||
import { CursorPage } from "../../../pagination.mjs";
|
||||
export class Jobs extends APIResource {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
@@ -16,7 +16,7 @@ export class Jobs extends APIResource {
|
||||
* Response includes details of the enqueued job including job status and the name
|
||||
* of the fine-tuned models once complete.
|
||||
*
|
||||
* [Learn more about fine-tuning](https://platform.openai.com/docs/guides/model-optimization)
|
||||
* [Learn more about fine-tuning](https://platform.openai.com/docs/guides/fine-tuning)
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
@@ -32,7 +32,7 @@ export class Jobs extends APIResource {
|
||||
/**
|
||||
* Get info about a fine-tuning job.
|
||||
*
|
||||
* [Learn more about fine-tuning](https://platform.openai.com/docs/guides/model-optimization)
|
||||
* [Learn more about fine-tuning](https://platform.openai.com/docs/guides/fine-tuning)
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
@@ -41,22 +41,14 @@ export class Jobs extends APIResource {
|
||||
* );
|
||||
* ```
|
||||
*/
|
||||
retrieve(fineTuningJobID, options) {
|
||||
return this._client.get(path `/fine_tuning/jobs/${fineTuningJobID}`, options);
|
||||
retrieve(fineTuningJobId, options) {
|
||||
return this._client.get(`/fine_tuning/jobs/${fineTuningJobId}`, options);
|
||||
}
|
||||
/**
|
||||
* List your organization's fine-tuning jobs
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* // Automatically fetches more pages as needed.
|
||||
* for await (const fineTuningJob of client.fineTuning.jobs.list()) {
|
||||
* // ...
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
list(query = {}, options) {
|
||||
return this._client.getAPIList('/fine_tuning/jobs', (CursorPage), { query, ...options });
|
||||
if (isRequestOptions(query)) {
|
||||
return this.list({}, query);
|
||||
}
|
||||
return this._client.getAPIList('/fine_tuning/jobs', FineTuningJobsPage, { query, ...options });
|
||||
}
|
||||
/**
|
||||
* Immediately cancel a fine-tune job.
|
||||
@@ -68,24 +60,17 @@ export class Jobs extends APIResource {
|
||||
* );
|
||||
* ```
|
||||
*/
|
||||
cancel(fineTuningJobID, options) {
|
||||
return this._client.post(path `/fine_tuning/jobs/${fineTuningJobID}/cancel`, options);
|
||||
cancel(fineTuningJobId, options) {
|
||||
return this._client.post(`/fine_tuning/jobs/${fineTuningJobId}/cancel`, options);
|
||||
}
|
||||
/**
|
||||
* Get status updates for a fine-tuning job.
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* // Automatically fetches more pages as needed.
|
||||
* for await (const fineTuningJobEvent of client.fineTuning.jobs.listEvents(
|
||||
* 'ft-AF1WoRqd3aJAHsqc9NY7iL8F',
|
||||
* )) {
|
||||
* // ...
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
listEvents(fineTuningJobID, query = {}, options) {
|
||||
return this._client.getAPIList(path `/fine_tuning/jobs/${fineTuningJobID}/events`, (CursorPage), { query, ...options });
|
||||
listEvents(fineTuningJobId, query = {}, options) {
|
||||
if (isRequestOptions(query)) {
|
||||
return this.listEvents(fineTuningJobId, {}, query);
|
||||
}
|
||||
return this._client.getAPIList(`/fine_tuning/jobs/${fineTuningJobId}/events`, FineTuningJobEventsPage, {
|
||||
query,
|
||||
...options,
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Pause a fine-tune job.
|
||||
@@ -97,8 +82,8 @@ export class Jobs extends APIResource {
|
||||
* );
|
||||
* ```
|
||||
*/
|
||||
pause(fineTuningJobID, options) {
|
||||
return this._client.post(path `/fine_tuning/jobs/${fineTuningJobID}/pause`, options);
|
||||
pause(fineTuningJobId, options) {
|
||||
return this._client.post(`/fine_tuning/jobs/${fineTuningJobId}/pause`, options);
|
||||
}
|
||||
/**
|
||||
* Resume a fine-tune job.
|
||||
@@ -110,9 +95,16 @@ export class Jobs extends APIResource {
|
||||
* );
|
||||
* ```
|
||||
*/
|
||||
resume(fineTuningJobID, options) {
|
||||
return this._client.post(path `/fine_tuning/jobs/${fineTuningJobID}/resume`, options);
|
||||
resume(fineTuningJobId, options) {
|
||||
return this._client.post(`/fine_tuning/jobs/${fineTuningJobId}/resume`, options);
|
||||
}
|
||||
}
|
||||
export class FineTuningJobsPage extends CursorPage {
|
||||
}
|
||||
export class FineTuningJobEventsPage extends CursorPage {
|
||||
}
|
||||
Jobs.FineTuningJobsPage = FineTuningJobsPage;
|
||||
Jobs.FineTuningJobEventsPage = FineTuningJobEventsPage;
|
||||
Jobs.Checkpoints = Checkpoints;
|
||||
Jobs.FineTuningJobCheckpointsPage = FineTuningJobCheckpointsPage;
|
||||
//# sourceMappingURL=jobs.mjs.map
|
||||
Reference in New Issue
Block a user