mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-14 05:03:43 +08:00
feat: 添加联网搜索功能,更新相关配置和多语言支持
This commit is contained in:
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user