mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-21 07:01:04 +08:00
Refa: Chats /chat API to RESTFul (#13881)
### What problem does this PR solve? Refactor Chats /chat API to RESTFul. ### Type of change - [x] Refactoring
This commit is contained in:
@@ -14,6 +14,7 @@ export interface PromptConfig {
|
||||
reasoning?: boolean;
|
||||
cross_languages?: Array<string>;
|
||||
tavily_api_key?: string;
|
||||
toc_enhance?: boolean;
|
||||
}
|
||||
|
||||
export interface Parameter {
|
||||
@@ -34,8 +35,8 @@ export interface Variable {
|
||||
presence_penalty?: number;
|
||||
temperature?: number;
|
||||
top_p?: number;
|
||||
llm_id?: string;
|
||||
tenant_llm_id?: string;
|
||||
model_type?: string;
|
||||
}
|
||||
|
||||
export interface IDialog {
|
||||
@@ -44,14 +45,14 @@ export interface IDialog {
|
||||
description: string;
|
||||
icon: string;
|
||||
id: string;
|
||||
dialog_id: string;
|
||||
kb_ids: string[];
|
||||
dialog_id?: string;
|
||||
dataset_ids: string[];
|
||||
kb_names: string[];
|
||||
language: string;
|
||||
llm_id: string;
|
||||
tenant_llm_id?: string;
|
||||
llm_setting: Variable;
|
||||
llm_setting_type: string;
|
||||
llm_setting_type?: string;
|
||||
name: string;
|
||||
prompt_config: PromptConfig;
|
||||
prompt_type: string;
|
||||
@@ -63,6 +64,7 @@ export interface IDialog {
|
||||
similarity_threshold: number;
|
||||
top_k: number;
|
||||
top_n: number;
|
||||
rerank_id?: string;
|
||||
meta_data_filter: MetaDataFilter;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user