✅ 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:
102
node_modules/openai/resources/fine-tuning/jobs/jobs.js
generated
vendored
102
node_modules/openai/resources/fine-tuning/jobs/jobs.js
generated
vendored
@@ -1,13 +1,35 @@
|
||||
"use strict";
|
||||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
||||
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.Jobs = void 0;
|
||||
const tslib_1 = require("../../../internal/tslib.js");
|
||||
const resource_1 = require("../../../core/resource.js");
|
||||
const CheckpointsAPI = tslib_1.__importStar(require("./checkpoints.js"));
|
||||
exports.FineTuningJobEventsPage = exports.FineTuningJobsPage = exports.Jobs = void 0;
|
||||
const resource_1 = require("../../../resource.js");
|
||||
const core_1 = require("../../../core.js");
|
||||
const CheckpointsAPI = __importStar(require("./checkpoints.js"));
|
||||
const checkpoints_1 = require("./checkpoints.js");
|
||||
const pagination_1 = require("../../../core/pagination.js");
|
||||
const path_1 = require("../../../internal/utils/path.js");
|
||||
const pagination_1 = require("../../../pagination.js");
|
||||
class Jobs extends resource_1.APIResource {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
@@ -20,7 +42,7 @@ class Jobs extends resource_1.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
|
||||
@@ -36,7 +58,7 @@ class Jobs extends resource_1.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
|
||||
@@ -45,22 +67,14 @@ class Jobs extends resource_1.APIResource {
|
||||
* );
|
||||
* ```
|
||||
*/
|
||||
retrieve(fineTuningJobID, options) {
|
||||
return this._client.get((0, path_1.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', (pagination_1.CursorPage), { query, ...options });
|
||||
if ((0, core_1.isRequestOptions)(query)) {
|
||||
return this.list({}, query);
|
||||
}
|
||||
return this._client.getAPIList('/fine_tuning/jobs', FineTuningJobsPage, { query, ...options });
|
||||
}
|
||||
/**
|
||||
* Immediately cancel a fine-tune job.
|
||||
@@ -72,24 +86,17 @@ class Jobs extends resource_1.APIResource {
|
||||
* );
|
||||
* ```
|
||||
*/
|
||||
cancel(fineTuningJobID, options) {
|
||||
return this._client.post((0, path_1.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((0, path_1.path) `/fine_tuning/jobs/${fineTuningJobID}/events`, (pagination_1.CursorPage), { query, ...options });
|
||||
listEvents(fineTuningJobId, query = {}, options) {
|
||||
if ((0, core_1.isRequestOptions)(query)) {
|
||||
return this.listEvents(fineTuningJobId, {}, query);
|
||||
}
|
||||
return this._client.getAPIList(`/fine_tuning/jobs/${fineTuningJobId}/events`, FineTuningJobEventsPage, {
|
||||
query,
|
||||
...options,
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Pause a fine-tune job.
|
||||
@@ -101,8 +108,8 @@ class Jobs extends resource_1.APIResource {
|
||||
* );
|
||||
* ```
|
||||
*/
|
||||
pause(fineTuningJobID, options) {
|
||||
return this._client.post((0, path_1.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.
|
||||
@@ -114,10 +121,19 @@ class Jobs extends resource_1.APIResource {
|
||||
* );
|
||||
* ```
|
||||
*/
|
||||
resume(fineTuningJobID, options) {
|
||||
return this._client.post((0, path_1.path) `/fine_tuning/jobs/${fineTuningJobID}/resume`, options);
|
||||
resume(fineTuningJobId, options) {
|
||||
return this._client.post(`/fine_tuning/jobs/${fineTuningJobId}/resume`, options);
|
||||
}
|
||||
}
|
||||
exports.Jobs = Jobs;
|
||||
class FineTuningJobsPage extends pagination_1.CursorPage {
|
||||
}
|
||||
exports.FineTuningJobsPage = FineTuningJobsPage;
|
||||
class FineTuningJobEventsPage extends pagination_1.CursorPage {
|
||||
}
|
||||
exports.FineTuningJobEventsPage = FineTuningJobEventsPage;
|
||||
Jobs.FineTuningJobsPage = FineTuningJobsPage;
|
||||
Jobs.FineTuningJobEventsPage = FineTuningJobEventsPage;
|
||||
Jobs.Checkpoints = checkpoints_1.Checkpoints;
|
||||
Jobs.FineTuningJobCheckpointsPage = checkpoints_1.FineTuningJobCheckpointsPage;
|
||||
//# sourceMappingURL=jobs.js.map
|
||||
Reference in New Issue
Block a user