feat: Adds the tenant model ID field to the interface definition. (#13274)

### What problem does this PR solve?

feat: Adds the tenant model ID field to the interface definition

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
chanx
2026-03-05 17:27:34 +08:00
committed by GitHub
parent 62cb292635
commit 35fc5edc93
7 changed files with 217 additions and 3 deletions

View File

@@ -108,6 +108,7 @@ export interface IGenerateForm {
cite?: boolean;
prompt: number;
llm_id: string;
tenant_llm_id?: string;
parameters: { key: string; component_id: string };
}
@@ -143,6 +144,7 @@ export interface IRetrievalForm {
top_n?: number;
top_k?: number;
rerank_id?: string;
tenant_rerank_id?: string;
empty_response?: string;
kb_ids: string[];
}

View File

@@ -35,6 +35,7 @@ export interface Variable {
temperature?: number;
top_p?: number;
llm_id?: string;
tenant_llm_id?: string;
}
export interface IDialog {
@@ -48,6 +49,7 @@ export interface IDialog {
kb_names: string[];
language: string;
llm_id: string;
tenant_llm_id?: string;
llm_setting: Variable;
llm_setting_type: string;
name: string;

View File

@@ -117,6 +117,13 @@ export interface ITenantInfo {
speech2text_id: string;
rerank_id?: string;
tts_id: string;
// Tenant model IDs
tenant_asr_id?: string;
tenant_embd_id?: string;
tenant_img2txt_id?: string;
tenant_llm_id?: string;
tenant_rerank_id?: string;
tenant_tts_id?: string;
}
export type ChunkDocType = 'image' | 'table' | 'text';