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:
@@ -51,6 +51,12 @@ export const DEFAULT_CONFIG = {
|
||||
enableInjectSystemPrompts: true,
|
||||
template: DEFAULT_INPUT_TEMPLATE,
|
||||
},
|
||||
|
||||
pluginConfig: {
|
||||
enable: true,
|
||||
maxIterations: 3,
|
||||
returnIntermediateSteps: true,
|
||||
},
|
||||
};
|
||||
|
||||
export type ChatConfig = typeof DEFAULT_CONFIG;
|
||||
@@ -63,6 +69,7 @@ export type ChatConfigStore = ChatConfig & {
|
||||
};
|
||||
|
||||
export type ModelConfig = ChatConfig["modelConfig"];
|
||||
export type PluginConfig = ChatConfig["pluginConfig"];
|
||||
|
||||
export function limitNumber(
|
||||
x: number,
|
||||
|
||||
Reference in New Issue
Block a user