2024-02-18 18:18:20 +08:00
|
|
|
export interface IThirdOAIModel {
|
|
|
|
|
available: boolean;
|
|
|
|
|
create_date: string;
|
|
|
|
|
create_time: number;
|
|
|
|
|
fid: string;
|
|
|
|
|
id: number;
|
|
|
|
|
llm_name: string;
|
|
|
|
|
max_tokens: number;
|
|
|
|
|
model_type: string;
|
|
|
|
|
status: string;
|
|
|
|
|
tags: string;
|
|
|
|
|
update_date: string;
|
|
|
|
|
update_time: number;
|
2025-04-01 11:53:48 +08:00
|
|
|
tenant_id?: string;
|
|
|
|
|
tenant_name?: string;
|
2025-05-16 16:32:19 +08:00
|
|
|
is_tools: boolean;
|
2024-02-18 18:18:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type IThirdOAIModelCollection = Record<string, IThirdOAIModel[]>;
|
2024-03-12 18:58:09 +08:00
|
|
|
|
|
|
|
|
export interface IFactory {
|
|
|
|
|
create_date: string;
|
|
|
|
|
create_time: number;
|
|
|
|
|
logo: string;
|
|
|
|
|
name: string;
|
|
|
|
|
status: string;
|
|
|
|
|
tags: string;
|
|
|
|
|
update_date: string;
|
|
|
|
|
update_time: number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IMyLlmValue {
|
|
|
|
|
llm: Llm[];
|
|
|
|
|
tags: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Llm {
|
|
|
|
|
name: string;
|
|
|
|
|
type: string;
|
2025-10-31 13:42:28 +08:00
|
|
|
status: '0' | '1';
|
2024-03-12 18:58:09 +08:00
|
|
|
used_token: number;
|
|
|
|
|
}
|
2026-05-29 17:39:41 +08:00
|
|
|
|
|
|
|
|
export interface IAvailableProvider {
|
|
|
|
|
name: string;
|
|
|
|
|
model_types: string[];
|
|
|
|
|
url: { default?: string; [key: string]: string | undefined };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IProviderInstance {
|
|
|
|
|
api_key: string;
|
|
|
|
|
id: string;
|
|
|
|
|
instance_name: string;
|
|
|
|
|
provider_id: string;
|
|
|
|
|
region: string;
|
|
|
|
|
status: string;
|
2026-06-08 16:46:52 +08:00
|
|
|
/**
|
|
|
|
|
* Optional: only returned by the showProviderInstance endpoint. Used
|
|
|
|
|
* to pre-fill the base_url/api_base form field in the ProviderModal
|
|
|
|
|
* (e.g. when opening an existing instance in viewMode).
|
|
|
|
|
*/
|
|
|
|
|
base_url?: string;
|
2026-05-29 17:39:41 +08:00
|
|
|
}
|
|
|
|
|
export interface IAddedModel {
|
|
|
|
|
model_type: string[];
|
|
|
|
|
name: string;
|
|
|
|
|
provider_id: string;
|
|
|
|
|
provider_name: string;
|
|
|
|
|
instance_id: string;
|
|
|
|
|
instance_name: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IInstanceModel {
|
|
|
|
|
max_tokens: number;
|
|
|
|
|
model_type: string[];
|
|
|
|
|
name: string;
|
|
|
|
|
status: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IDefaultModel {
|
|
|
|
|
enable: boolean;
|
|
|
|
|
model_instance: string;
|
|
|
|
|
model_name: string;
|
|
|
|
|
model_provider: string;
|
|
|
|
|
model_type: string;
|
|
|
|
|
}
|