mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-07 03:48:44 +08:00
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:
@@ -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[];
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user