mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-07 12:00:44 +08:00
### What problem does this PR solve? Add api for sessions and add max_tokens for tenant_llm ### Type of change - [x] New Feature (non-breaking change which adds functionality) --------- Co-authored-by: liuhua <10215101452@stu.ecun.edu.cn>
14 lines
316 B
TypeScript
14 lines
316 B
TypeScript
export interface IAddLlmRequestBody {
|
|
llm_factory: string; // Ollama
|
|
llm_name: string;
|
|
model_type: string;
|
|
api_base?: string; // chat|embedding|speech2text|image2text
|
|
api_key: string;
|
|
max_tokens: number;
|
|
}
|
|
|
|
export interface IDeleteLlmRequestBody {
|
|
llm_factory: string; // Ollama
|
|
llm_name?: string;
|
|
}
|