mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-23 02:13:42 +08:00
feat: 支持开关指定内置插件
This commit is contained in:
@@ -26,6 +26,7 @@ export interface LLMConfig {
|
||||
export interface LLMAgentConfig {
|
||||
maxIterations: number;
|
||||
returnIntermediateSteps: boolean;
|
||||
useTools?: (string | undefined)[];
|
||||
}
|
||||
|
||||
export interface ChatOptions {
|
||||
|
@@ -220,6 +220,7 @@ export class ChatGPTApi implements LLMApi {
|
||||
baseUrl: useAccessStore.getState().openaiUrl,
|
||||
maxIterations: options.agentConfig.maxIterations,
|
||||
returnIntermediateSteps: options.agentConfig.returnIntermediateSteps,
|
||||
useTools: options.agentConfig.useTools,
|
||||
};
|
||||
|
||||
console.log("[Request] openai payload: ", requestPayload);
|
||||
|
Reference in New Issue
Block a user