✅ 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:
85
node_modules/openai/resources/vector-stores/files.d.ts
generated
vendored
85
node_modules/openai/resources/vector-stores/files.d.ts
generated
vendored
@@ -1,39 +1,39 @@
|
||||
import { APIResource } from "../../core/resource.js";
|
||||
import { APIResource } from "../../resource.js";
|
||||
import { Uploadable } from "../../core.js";
|
||||
import * as Core from "../../core.js";
|
||||
import * as VectorStoresAPI from "./vector-stores.js";
|
||||
import { APIPromise } from "../../core/api-promise.js";
|
||||
import { CursorPage, type CursorPageParams, PagePromise, Page } from "../../core/pagination.js";
|
||||
import { RequestOptions } from "../../internal/request-options.js";
|
||||
import { Uploadable } from "../../uploads.js";
|
||||
import { CursorPage, type CursorPageParams, Page } from "../../pagination.js";
|
||||
export declare class Files extends APIResource {
|
||||
/**
|
||||
* Create a vector store file by attaching a
|
||||
* [File](https://platform.openai.com/docs/api-reference/files) to a
|
||||
* [vector store](https://platform.openai.com/docs/api-reference/vector-stores/object).
|
||||
*/
|
||||
create(vectorStoreID: string, body: FileCreateParams, options?: RequestOptions): APIPromise<VectorStoreFile>;
|
||||
create(vectorStoreId: string, body: FileCreateParams, options?: Core.RequestOptions): Core.APIPromise<VectorStoreFile>;
|
||||
/**
|
||||
* Retrieves a vector store file.
|
||||
*/
|
||||
retrieve(fileID: string, params: FileRetrieveParams, options?: RequestOptions): APIPromise<VectorStoreFile>;
|
||||
retrieve(vectorStoreId: string, fileId: string, options?: Core.RequestOptions): Core.APIPromise<VectorStoreFile>;
|
||||
/**
|
||||
* Update attributes on a vector store file.
|
||||
*/
|
||||
update(fileID: string, params: FileUpdateParams, options?: RequestOptions): APIPromise<VectorStoreFile>;
|
||||
update(vectorStoreId: string, fileId: string, body: FileUpdateParams, options?: Core.RequestOptions): Core.APIPromise<VectorStoreFile>;
|
||||
/**
|
||||
* Returns a list of vector store files.
|
||||
*/
|
||||
list(vectorStoreID: string, query?: FileListParams | null | undefined, options?: RequestOptions): PagePromise<VectorStoreFilesPage, VectorStoreFile>;
|
||||
list(vectorStoreId: string, query?: FileListParams, options?: Core.RequestOptions): Core.PagePromise<VectorStoreFilesPage, VectorStoreFile>;
|
||||
list(vectorStoreId: string, options?: Core.RequestOptions): Core.PagePromise<VectorStoreFilesPage, VectorStoreFile>;
|
||||
/**
|
||||
* Delete a vector store file. This will remove the file from the vector store but
|
||||
* the file itself will not be deleted. To delete the file, use the
|
||||
* [delete file](https://platform.openai.com/docs/api-reference/files/delete)
|
||||
* endpoint.
|
||||
*/
|
||||
delete(fileID: string, params: FileDeleteParams, options?: RequestOptions): APIPromise<VectorStoreFileDeleted>;
|
||||
del(vectorStoreId: string, fileId: string, options?: Core.RequestOptions): Core.APIPromise<VectorStoreFileDeleted>;
|
||||
/**
|
||||
* Attach a file to the given vector store and wait for it to be processed.
|
||||
*/
|
||||
createAndPoll(vectorStoreId: string, body: FileCreateParams, options?: RequestOptions & {
|
||||
createAndPoll(vectorStoreId: string, body: FileCreateParams, options?: Core.RequestOptions & {
|
||||
pollIntervalMs?: number;
|
||||
}): Promise<VectorStoreFile>;
|
||||
/**
|
||||
@@ -42,7 +42,7 @@ export declare class Files extends APIResource {
|
||||
* Note: this will return even if the file failed to process, you need to check
|
||||
* file.last_error and file.status to handle these cases
|
||||
*/
|
||||
poll(vectorStoreID: string, fileID: string, options?: RequestOptions & {
|
||||
poll(vectorStoreId: string, fileId: string, options?: Core.RequestOptions & {
|
||||
pollIntervalMs?: number;
|
||||
}): Promise<VectorStoreFile>;
|
||||
/**
|
||||
@@ -51,20 +51,25 @@ export declare class Files extends APIResource {
|
||||
* Note the file will be asynchronously processed (you can use the alternative
|
||||
* polling helper method to wait for processing to complete).
|
||||
*/
|
||||
upload(vectorStoreId: string, file: Uploadable, options?: RequestOptions): Promise<VectorStoreFile>;
|
||||
upload(vectorStoreId: string, file: Uploadable, options?: Core.RequestOptions): Promise<VectorStoreFile>;
|
||||
/**
|
||||
* Add a file to a vector store and poll until processing is complete.
|
||||
*/
|
||||
uploadAndPoll(vectorStoreId: string, file: Uploadable, options?: RequestOptions & {
|
||||
uploadAndPoll(vectorStoreId: string, file: Uploadable, options?: Core.RequestOptions & {
|
||||
pollIntervalMs?: number;
|
||||
}): Promise<VectorStoreFile>;
|
||||
/**
|
||||
* Retrieve the parsed contents of a vector store file.
|
||||
*/
|
||||
content(fileID: string, params: FileContentParams, options?: RequestOptions): PagePromise<FileContentResponsesPage, FileContentResponse>;
|
||||
content(vectorStoreId: string, fileId: string, options?: Core.RequestOptions): Core.PagePromise<FileContentResponsesPage, FileContentResponse>;
|
||||
}
|
||||
export declare class VectorStoreFilesPage extends CursorPage<VectorStoreFile> {
|
||||
}
|
||||
/**
|
||||
* Note: no pagination actually occurs yet, this is for forwards-compatibility.
|
||||
*/
|
||||
export declare class FileContentResponsesPage extends Page<FileContentResponse> {
|
||||
}
|
||||
export type VectorStoreFilesPage = CursorPage<VectorStoreFile>;
|
||||
export type FileContentResponsesPage = Page<FileContentResponse>;
|
||||
/**
|
||||
* A list of files attached to a vector store.
|
||||
*/
|
||||
@@ -111,9 +116,7 @@ export interface VectorStoreFile {
|
||||
* length of 64 characters. Values are strings with a maximum length of 512
|
||||
* characters, booleans, or numbers.
|
||||
*/
|
||||
attributes?: {
|
||||
[key: string]: string | number | boolean;
|
||||
} | null;
|
||||
attributes?: Record<string, string | number | boolean> | null;
|
||||
/**
|
||||
* The strategy used to chunk the file.
|
||||
*/
|
||||
@@ -164,36 +167,22 @@ export interface FileCreateParams {
|
||||
* length of 64 characters. Values are strings with a maximum length of 512
|
||||
* characters, booleans, or numbers.
|
||||
*/
|
||||
attributes?: {
|
||||
[key: string]: string | number | boolean;
|
||||
} | null;
|
||||
attributes?: Record<string, string | number | boolean> | null;
|
||||
/**
|
||||
* The chunking strategy used to chunk the file(s). If not set, will use the `auto`
|
||||
* strategy. Only applicable if `file_ids` is non-empty.
|
||||
*/
|
||||
chunking_strategy?: VectorStoresAPI.FileChunkingStrategyParam;
|
||||
}
|
||||
export interface FileRetrieveParams {
|
||||
/**
|
||||
* The ID of the vector store that the file belongs to.
|
||||
*/
|
||||
vector_store_id: string;
|
||||
}
|
||||
export interface FileUpdateParams {
|
||||
/**
|
||||
* Path param: The ID of the vector store the file belongs to.
|
||||
* 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, booleans, or numbers.
|
||||
*/
|
||||
vector_store_id: string;
|
||||
/**
|
||||
* Body param: 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, booleans, or numbers.
|
||||
*/
|
||||
attributes: {
|
||||
[key: string]: string | number | boolean;
|
||||
} | null;
|
||||
attributes: Record<string, string | number | boolean> | null;
|
||||
}
|
||||
export interface FileListParams extends CursorPageParams {
|
||||
/**
|
||||
@@ -213,19 +202,7 @@ export interface FileListParams extends CursorPageParams {
|
||||
*/
|
||||
order?: 'asc' | 'desc';
|
||||
}
|
||||
export interface FileDeleteParams {
|
||||
/**
|
||||
* The ID of the vector store that the file belongs to.
|
||||
*/
|
||||
vector_store_id: string;
|
||||
}
|
||||
export interface FileContentParams {
|
||||
/**
|
||||
* The ID of the vector store.
|
||||
*/
|
||||
vector_store_id: string;
|
||||
}
|
||||
export declare namespace Files {
|
||||
export { type VectorStoreFile as VectorStoreFile, type VectorStoreFileDeleted as VectorStoreFileDeleted, type FileContentResponse as FileContentResponse, type VectorStoreFilesPage as VectorStoreFilesPage, type FileContentResponsesPage as FileContentResponsesPage, type FileCreateParams as FileCreateParams, type FileRetrieveParams as FileRetrieveParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, type FileDeleteParams as FileDeleteParams, type FileContentParams as FileContentParams, };
|
||||
export { type VectorStoreFile as VectorStoreFile, type VectorStoreFileDeleted as VectorStoreFileDeleted, type FileContentResponse as FileContentResponse, VectorStoreFilesPage as VectorStoreFilesPage, FileContentResponsesPage as FileContentResponsesPage, type FileCreateParams as FileCreateParams, type FileUpdateParams as FileUpdateParams, type FileListParams as FileListParams, };
|
||||
}
|
||||
//# sourceMappingURL=files.d.ts.map
|
||||
Reference in New Issue
Block a user