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:
rwiegand
2025-07-14 12:39:05 +02:00
parent b31492a354
commit f893530471
1798 changed files with 25329 additions and 92638 deletions

View File

@@ -1,11 +1,9 @@
import { APIResource } from "../../../core/resource.js";
import * as Shared from "../../shared.js";
import { APIResource } from "../../../resource.js";
import * as Core from "../../../core.js";
import * as MethodsAPI from "../methods.js";
import * as CheckpointsAPI from "./checkpoints.js";
import { CheckpointListParams, Checkpoints, FineTuningJobCheckpoint, FineTuningJobCheckpointsPage } from "./checkpoints.js";
import { APIPromise } from "../../../core/api-promise.js";
import { CursorPage, type CursorPageParams, PagePromise } from "../../../core/pagination.js";
import { RequestOptions } from "../../../internal/request-options.js";
import { CursorPage, type CursorPageParams } from "../../../pagination.js";
export declare class Jobs extends APIResource {
checkpoints: CheckpointsAPI.Checkpoints;
/**
@@ -15,7 +13,7 @@ export declare 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
@@ -25,11 +23,11 @@ export declare class Jobs extends APIResource {
* });
* ```
*/
create(body: JobCreateParams, options?: RequestOptions): APIPromise<FineTuningJob>;
create(body: JobCreateParams, options?: Core.RequestOptions): Core.APIPromise<FineTuningJob>;
/**
* 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
@@ -38,7 +36,7 @@ export declare class Jobs extends APIResource {
* );
* ```
*/
retrieve(fineTuningJobID: string, options?: RequestOptions): APIPromise<FineTuningJob>;
retrieve(fineTuningJobId: string, options?: Core.RequestOptions): Core.APIPromise<FineTuningJob>;
/**
* List your organization's fine-tuning jobs
*
@@ -50,7 +48,8 @@ export declare class Jobs extends APIResource {
* }
* ```
*/
list(query?: JobListParams | null | undefined, options?: RequestOptions): PagePromise<FineTuningJobsPage, FineTuningJob>;
list(query?: JobListParams, options?: Core.RequestOptions): Core.PagePromise<FineTuningJobsPage, FineTuningJob>;
list(options?: Core.RequestOptions): Core.PagePromise<FineTuningJobsPage, FineTuningJob>;
/**
* Immediately cancel a fine-tune job.
*
@@ -61,7 +60,7 @@ export declare class Jobs extends APIResource {
* );
* ```
*/
cancel(fineTuningJobID: string, options?: RequestOptions): APIPromise<FineTuningJob>;
cancel(fineTuningJobId: string, options?: Core.RequestOptions): Core.APIPromise<FineTuningJob>;
/**
* Get status updates for a fine-tuning job.
*
@@ -75,7 +74,8 @@ export declare class Jobs extends APIResource {
* }
* ```
*/
listEvents(fineTuningJobID: string, query?: JobListEventsParams | null | undefined, options?: RequestOptions): PagePromise<FineTuningJobEventsPage, FineTuningJobEvent>;
listEvents(fineTuningJobId: string, query?: JobListEventsParams, options?: Core.RequestOptions): Core.PagePromise<FineTuningJobEventsPage, FineTuningJobEvent>;
listEvents(fineTuningJobId: string, options?: Core.RequestOptions): Core.PagePromise<FineTuningJobEventsPage, FineTuningJobEvent>;
/**
* Pause a fine-tune job.
*
@@ -86,7 +86,7 @@ export declare class Jobs extends APIResource {
* );
* ```
*/
pause(fineTuningJobID: string, options?: RequestOptions): APIPromise<FineTuningJob>;
pause(fineTuningJobId: string, options?: Core.RequestOptions): Core.APIPromise<FineTuningJob>;
/**
* Resume a fine-tune job.
*
@@ -97,10 +97,12 @@ export declare class Jobs extends APIResource {
* );
* ```
*/
resume(fineTuningJobID: string, options?: RequestOptions): APIPromise<FineTuningJob>;
resume(fineTuningJobId: string, options?: Core.RequestOptions): Core.APIPromise<FineTuningJob>;
}
export declare class FineTuningJobsPage extends CursorPage<FineTuningJob> {
}
export declare class FineTuningJobEventsPage extends CursorPage<FineTuningJobEvent> {
}
export type FineTuningJobsPage = CursorPage<FineTuningJob>;
export type FineTuningJobEventsPage = CursorPage<FineTuningJobEvent>;
/**
* The `fine_tuning.job` object represents a fine-tuning job that has been created
* through the API.
@@ -186,15 +188,6 @@ export interface FineTuningJob {
* A list of integrations to enable for this fine-tuning job.
*/
integrations?: Array<FineTuningJobWandbIntegrationObject> | null;
/**
* Set of 16 key-value pairs that can be attached to an object. This can be useful
* for storing additional information about the object in a structured format, and
* querying for objects via API or the dashboard.
*
* Keys are strings with a maximum length of 64 characters. Values are strings with
* a maximum length of 512 characters.
*/
metadata?: Shared.Metadata | null;
/**
* The method used for fine-tuning.
*/
@@ -229,7 +222,7 @@ export declare namespace FineTuningJob {
* Number of examples in each batch. A larger batch size means that model
* parameters are updated less frequently, but with lower variance.
*/
batch_size?: 'auto' | number | null;
batch_size?: unknown | 'auto' | number | null;
/**
* Scaling factor for the learning rate. A smaller learning rate may be useful to
* avoid overfitting.
@@ -296,6 +289,7 @@ export interface FineTuningJobEvent {
*/
type?: 'message' | 'metrics';
}
export type FineTuningJobIntegration = FineTuningJobWandbIntegrationObject;
/**
* The settings for your integration with Weights and Biases. This payload
* specifies the project that metrics will be sent to. Optionally, you can set an
@@ -338,7 +332,6 @@ export interface FineTuningJobWandbIntegrationObject {
*/
wandb: FineTuningJobWandbIntegration;
}
export type FineTuningJobIntegration = FineTuningJobWandbIntegrationObject;
export interface JobCreateParams {
/**
* The name of the model to fine-tune. You can select one of the
@@ -361,8 +354,7 @@ export interface JobCreateParams {
* [preference](https://platform.openai.com/docs/api-reference/fine-tuning/preference-input)
* format.
*
* See the
* [fine-tuning guide](https://platform.openai.com/docs/guides/model-optimization)
* See the [fine-tuning guide](https://platform.openai.com/docs/guides/fine-tuning)
* for more details.
*/
training_file: string;
@@ -376,15 +368,6 @@ export interface JobCreateParams {
* A list of integrations to enable for your fine-tuning job.
*/
integrations?: Array<JobCreateParams.Integration> | null;
/**
* Set of 16 key-value pairs that can be attached to an object. This can be useful
* for storing additional information about the object in a structured format, and
* querying for objects via API or the dashboard.
*
* Keys are strings with a maximum length of 64 characters. Values are strings with
* a maximum length of 512 characters.
*/
metadata?: Shared.Metadata | null;
/**
* The method used for fine-tuning.
*/
@@ -414,8 +397,7 @@ export interface JobCreateParams {
* Your dataset must be formatted as a JSONL file. You must upload your file with
* the purpose `fine-tune`.
*
* See the
* [fine-tuning guide](https://platform.openai.com/docs/guides/model-optimization)
* See the [fine-tuning guide](https://platform.openai.com/docs/guides/fine-tuning)
* for more details.
*/
validation_file?: string | null;
@@ -511,18 +493,11 @@ export declare namespace JobCreateParams {
}
}
export interface JobListParams extends CursorPageParams {
/**
* Optional metadata filter. To filter, use the syntax `metadata[k]=v`.
* Alternatively, set `metadata=null` to indicate no metadata.
*/
metadata?: {
[key: string]: string;
} | null;
}
export interface JobListEventsParams extends CursorPageParams {
}
export declare namespace Jobs {
export { type FineTuningJob as FineTuningJob, type FineTuningJobEvent as FineTuningJobEvent, type FineTuningJobWandbIntegration as FineTuningJobWandbIntegration, type FineTuningJobWandbIntegrationObject as FineTuningJobWandbIntegrationObject, type FineTuningJobIntegration as FineTuningJobIntegration, type FineTuningJobsPage as FineTuningJobsPage, type FineTuningJobEventsPage as FineTuningJobEventsPage, type JobCreateParams as JobCreateParams, type JobListParams as JobListParams, type JobListEventsParams as JobListEventsParams, };
export { Checkpoints as Checkpoints, type FineTuningJobCheckpoint as FineTuningJobCheckpoint, type FineTuningJobCheckpointsPage as FineTuningJobCheckpointsPage, type CheckpointListParams as CheckpointListParams, };
export { type FineTuningJob as FineTuningJob, type FineTuningJobEvent as FineTuningJobEvent, type FineTuningJobIntegration as FineTuningJobIntegration, type FineTuningJobWandbIntegration as FineTuningJobWandbIntegration, type FineTuningJobWandbIntegrationObject as FineTuningJobWandbIntegrationObject, FineTuningJobsPage as FineTuningJobsPage, FineTuningJobEventsPage as FineTuningJobEventsPage, type JobCreateParams as JobCreateParams, type JobListParams as JobListParams, type JobListEventsParams as JobListEventsParams, };
export { Checkpoints as Checkpoints, type FineTuningJobCheckpoint as FineTuningJobCheckpoint, FineTuningJobCheckpointsPage as FineTuningJobCheckpointsPage, type CheckpointListParams as CheckpointListParams, };
}
//# sourceMappingURL=jobs.d.ts.map