feat: 添加联网搜索功能,更新相关配置和多语言支持

This commit is contained in:
EvanWu
2025-08-05 18:28:06 +08:00
parent 4e3f166d67
commit 044298e18a
26 changed files with 118 additions and 5 deletions

View File

@@ -58,6 +58,7 @@ interface RequestParam {
top_p: number;
max_tokens?: number;
tools?: FunctionToolItem[];
enable_search?: boolean;
}
interface RequestPayload {
model: string;
@@ -199,6 +200,7 @@ export class QwenApi implements LLMApi {
temperature: modelConfig.temperature,
// max_tokens: modelConfig.max_tokens,
top_p: modelConfig.top_p === 1 ? 0.99 : modelConfig.top_p, // qwen top_p is should be < 1
enable_search: modelConfig.enableNetWork,
},
};