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:
Yongteng Lei
2026-04-01 20:10:37 +08:00
committed by GitHub
parent bb4a06f759
commit b622c47ed6
56 changed files with 2487 additions and 3664 deletions

View File

@@ -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;
}