@@ -13,23 +13,25 @@ weight: 708
1313
1414这个配置文件中包含了系统级参数、AI 对话的模型、function 模型等……
1515
16+ ## 4.6.8 以前版本完整配置参数  
1617
17- ##  旧版本配置文件 
18+ ** 使用时,请务必去除注释! ** 
1819
19- 以下配置适合 4 .6.6-alpha 之前 
20+ 以下配置适用于V4 .6.6-alpha版本以后 
2021
2122``` json 
2223{
23-   "SystemParams " : {
24+   "systemEnv " : {
2425    "vectorMaxProcess" : 15 , // 向量生成最大进程,结合数据库性能和 key 来设置 
2526    "qaMaxProcess" : 15 ,  // QA 生成最大进程,结合数据库性能和 key 来设置 
2627    "pgHNSWEfSearch" : 100   // pg vector 索引参数,越大精度高但速度慢 
2728  },
28-   "ChatModels " : [ // 对话模型 
29+   "chatModels " : [ // 对话模型 
2930    {
3031      "model" : " gpt-3.5-turbo-1106"  ,
3132      "name" : " GPT35-1106"  ,
32-       "price" : 0 , // 除以 100000 后等于1个token的价格 
33+       "inputPrice" : 0 , // 输入价格。 xx元/1k tokens 
34+       "outputPrice" : 0 , // 输出价格。 xx元/1k tokens 
3335      "maxContext" : 16000 , // 最大上下文长度 
3436      "maxResponse" : 4000 , // 最大回复长度 
3537      "quoteMaxToken" : 2000 , // 最大引用内容长度 
@@ -43,7 +45,8 @@ weight: 708
4345      "name" : " GPT35-16k"  ,
4446      "maxContext" : 16000 ,
4547      "maxResponse" : 16000 ,
46-       "price" : 0 ,
48+       "inputPrice" : 0 ,
49+       "outputPrice" : 0 ,
4750      "quoteMaxToken" : 8000 ,
4851      "maxTemperature" : 1.2 ,
4952      "censor" : false ,
@@ -55,7 +58,8 @@ weight: 708
5558      "name" : " GPT4-8k"  ,
5659      "maxContext" : 8000 ,
5760      "maxResponse" : 8000 ,
58-       "price" : 0 ,
61+       "inputPrice" : 0 ,
62+       "outputPrice" : 0 ,
5963      "quoteMaxToken" : 4000 ,
6064      "maxTemperature" : 1.2 ,
6165      "censor" : false ,
@@ -67,30 +71,33 @@ weight: 708
6771      "name" : " GPT4-Vision"  ,
6872      "maxContext" : 128000 ,
6973      "maxResponse" : 4000 ,
70-       "price" : 0 ,
74+       "inputPrice" : 0 ,
75+       "outputPrice" : 0 ,
7176      "quoteMaxToken" : 100000 ,
7277      "maxTemperature" : 1.2 ,
7378      "censor" : false ,
7479      "vision" : true ,
7580      "defaultSystemChatPrompt" : " " 
7681    }
7782  ],
78-   "QAModels " : [ // QA 生成模型 
83+   "qaModels " : [ // QA 生成模型 
7984    {
8085      "model" : " gpt-3.5-turbo-16k"  ,
8186      "name" : " GPT35-16k"  ,
8287      "maxContext" : 16000 ,
8388      "maxResponse" : 16000 ,
84-       "price" : 0 
89+       "inputPrice" : 0 ,
90+       "outputPrice" : 0 
8591    }
8692  ],
87-   "CQModels " : [ // 问题分类模型 
93+   "cqModels " : [ // 问题分类模型 
8894    {
8995      "model" : " gpt-3.5-turbo-1106"  ,
9096      "name" : " GPT35-1106"  ,
9197      "maxContext" : 16000 ,
9298      "maxResponse" : 4000 ,
93-       "price" : 0 ,
99+       "inputPrice" : 0 ,
100+       "outputPrice" : 0 ,
94101      "toolChoice" : true , // 是否支持openai的 toolChoice, 不支持的模型需要设置为 false,会走提示词生成 
95102      "functionPrompt" : " " 
96103    },
@@ -99,46 +106,49 @@ weight: 708
99106      "name" : " GPT4-8k"  ,
100107      "maxContext" : 8000 ,
101108      "maxResponse" : 8000 ,
102-       "price" : 0 ,
109+       "inputPrice" : 0 ,
110+       "outputPrice" : 0 ,
103111      "toolChoice" : true ,
104112      "functionPrompt" : " " 
105113    }
106114  ],
107-   "ExtractModels " : [ // 内容提取模型 
115+   "extractModels " : [ // 内容提取模型 
108116    {
109117      "model" : " gpt-3.5-turbo-1106"  ,
110118      "name" : " GPT35-1106"  ,
111119      "maxContext" : 16000 ,
112120      "maxResponse" : 4000 ,
113-       "price" : 0 ,
121+       "inputPrice" : 0 ,
122+       "outputPrice" : 0 ,
114123      "toolChoice" : true ,
115124      "functionPrompt" : " " 
116125    }
117126  ],
118-   "QGModels " : [ // 生成下一步指引 
127+   "qgModels " : [ // 生成下一步指引 
119128    {
120129      "model" : " gpt-3.5-turbo-1106"  ,
121130      "name" : " GPT35-1106"  ,
122131      "maxContext" : 1600 ,
123132      "maxResponse" : 4000 ,
124-       "price" : 0 
133+       "inputPrice" : 0 ,
134+       "outputPrice" : 0 
125135    }
126136  ],
127-   "VectorModels " : [ // 向量模型 
137+   "vectorModels " : [ // 向量模型 
128138    {
129139      "model" : " text-embedding-ada-002"  ,
130140      "name" : " Embedding-2"  ,
131-       "price " : 0.2  ,
141+       "inputPrice " : 0 ,
132142      "defaultToken" : 700 ,
133143      "maxToken" : 3000 
134144    }
135145  ],
136-   "ReRankModels " : [], // 重排模型,暂时填空数组 
137-   "AudioSpeechModels " : [
146+   "reRankModels " : [], // 重排模型,暂时填空数组 
147+   "audioSpeechModels " : [
138148    {
139149      "model" : " tts-1"  ,
140150      "name" : " OpenAI TTS1"  ,
141-       "price " : 0 ,
151+       "inputPrice " : 0 ,
142152      "baseUrl" : " "  ,
143153      "key" : " "  ,
144154      "voices" : [
@@ -151,152 +161,123 @@ weight: 708
151161      ]
152162    }
153163  ],
154-   "WhisperModel " : {
164+   "whisperModel " : {
155165    "model" : " whisper-1"  ,
156166    "name" : " Whisper1"  ,
157-     "price " : 0 
167+     "inputPrice " : 0 
158168  }
159169}
160170``` 
161171
162- ## 4.6.6-alpha 版本完整配置参数  
163- 
164- ** 使用时,请务必去除注释!** 
172+ ## 4.6.8 新配置文件  
165173
166- 以下配置适用于V4.6.6-alpha版本以后 
174+ llm模型全部合并 
167175
168176``` json 
169177{
170178  "systemEnv" : {
171-     "vectorMaxProcess" : 15 , // 向量生成最大进程,结合数据库性能和 key 来设置 
172-     "qaMaxProcess" : 15 ,  // QA 生成最大进程,结合数据库性能和 key 来设置 
173-     "pgHNSWEfSearch" : 100   // pg vector 索引参数,越大精度高但速度慢 
179+     "openapiPrefix" : " fastgpt"  ,
180+     "vectorMaxProcess" : 15 ,
181+     "qaMaxProcess" : 15 ,
182+     "pgHNSWEfSearch" : 100 
174183  },
175-   "chatModels " : [  // 对话模型 
184+   "llmModels " : [
176185    {
177-       "model" : " gpt-3.5-turbo-1106"  ,
178-       "name" : " GPT35-1106"  ,
179-       "inputPrice" : 0 , // 输入价格。 xx元/1k tokens 
180-       "outputPrice" : 0 , // 输出价格。 xx元/1k tokens 
181-       "maxContext" : 16000 , // 最大上下文长度 
182-       "maxResponse" : 4000 , // 最大回复长度 
183-       "quoteMaxToken" : 2000 , // 最大引用内容长度 
184-       "maxTemperature" : 1.2 , // 最大温度值 
185-       "censor" : false , // 是否开启敏感词过滤(商业版) 
186-       "vision" : false , // 支持图片输入 
187-       "defaultSystemChatPrompt" : " " 
186+       "model" : " gpt-3.5-turbo-1106"  , // 模型名 
187+       "name" : " gpt-3.5-turbo"  , // 别名 
188+       "maxContext" : 16000 , // 最大上下文 
189+       "maxResponse" : 4000 , // 最大回复 
190+       "quoteMaxToken" : 13000 , // 最大引用内容 
191+       "maxTemperature" : 1.2 , // 最大温度 
192+       "inputPrice" : 0 , 
193+       "outputPrice" : 0 ,
194+       "censor" : false ,
195+       "vision" : false , // 是否支持图片输入 
196+       "datasetProcess" : false , // 是否设置为知识库处理模型 
197+       "toolChoice" : true , // 是否支持工具选择 
198+       "functionCall" : false , // 是否支持函数调用 
199+       "customCQPrompt" : " "  , // 自定义文本分类提示词(不支持工具和函数调用的模型 
200+       "customExtractPrompt" : " "  , // 自定义内容提取提示词 
201+       "defaultSystemChatPrompt" : " "  , // 对话默认携带的系统提示词 
202+       "defaultConfig" :{}  // 对话默认配置(比如 GLM4 的 top_p 
188203    },
189204    {
190205      "model" : " gpt-3.5-turbo-16k"  ,
191-       "name" : " GPT35 -16k"  ,
206+       "name" : " gpt-3.5-turbo -16k"  ,
192207      "maxContext" : 16000 ,
193208      "maxResponse" : 16000 ,
209+       "quoteMaxToken" : 13000 ,
210+       "maxTemperature" : 1.2 ,
194211      "inputPrice" : 0 ,
195212      "outputPrice" : 0 ,
196-       "quoteMaxToken" : 8000 ,
197-       "maxTemperature" : 1.2 ,
198213      "censor" : false ,
199214      "vision" : false ,
200-       "defaultSystemChatPrompt" : " " 
215+       "datasetProcess" : true ,
216+       "toolChoice" : true ,
217+       "functionCall" : false ,
218+       "customCQPrompt" : " "  ,
219+       "customExtractPrompt" : " "  ,
220+       "defaultSystemChatPrompt" : " "  ,
221+       "defaultConfig" :{} 
201222    },
202223    {
203-       "model" : " gpt-4"  ,
204-       "name" : " GPT4-8k"  ,
205-       "maxContext" : 8000 ,
206-       "maxResponse" : 8000 ,
224+       "model" : " gpt-4-0125-preview"  ,
225+       "name" : " gpt-4-turbo"  ,
226+       "maxContext" : 125000 ,
227+       "maxResponse" : 125000 ,
228+       "quoteMaxToken" : 100000 ,
229+       "maxTemperature" : 1.2 ,
207230      "inputPrice" : 0 ,
208231      "outputPrice" : 0 ,
209-       "quoteMaxToken" : 4000 ,
210-       "maxTemperature" : 1.2 ,
211232      "censor" : false ,
212233      "vision" : false ,
213-       "defaultSystemChatPrompt" : " " 
234+       "datasetProcess" : false ,
235+       "toolChoice" : true ,
236+       "functionCall" : false ,
237+       "customCQPrompt" : " "  ,
238+       "customExtractPrompt" : " "  ,
239+       "defaultSystemChatPrompt" : " "  ,
240+       "defaultConfig" :{} 
214241    },
215242    {
216243      "model" : " gpt-4-vision-preview"  ,
217-       "name" : " GPT4-Vision "  ,
244+       "name" : " gpt-4-vision "  ,
218245      "maxContext" : 128000 ,
219246      "maxResponse" : 4000 ,
220-       "inputPrice" : 0 ,
221-       "outputPrice" : 0 ,
222247      "quoteMaxToken" : 100000 ,
223248      "maxTemperature" : 1.2 ,
224-       "censor" : false ,
225-       "vision" : true ,
226-       "defaultSystemChatPrompt" : " " 
227-     }
228-   ],
229-   "qaModels" : [ // QA 生成模型 
230-     {
231-       "model" : " gpt-3.5-turbo-16k"  ,
232-       "name" : " GPT35-16k"  ,
233-       "maxContext" : 16000 ,
234-       "maxResponse" : 16000 ,
235-       "inputPrice" : 0 ,
236-       "outputPrice" : 0 
237-     }
238-   ],
239-   "cqModels" : [ // 问题分类模型 
240-     {
241-       "model" : " gpt-3.5-turbo-1106"  ,
242-       "name" : " GPT35-1106"  ,
243-       "maxContext" : 16000 ,
244-       "maxResponse" : 4000 ,
245-       "inputPrice" : 0 ,
246-       "outputPrice" : 0 ,
247-       "toolChoice" : true , // 是否支持openai的 toolChoice, 不支持的模型需要设置为 false,会走提示词生成 
248-       "functionPrompt" : " " 
249-     },
250-     {
251-       "model" : " gpt-4"  ,
252-       "name" : " GPT4-8k"  ,
253-       "maxContext" : 8000 ,
254-       "maxResponse" : 8000 ,
255-       "inputPrice" : 0 ,
256-       "outputPrice" : 0 ,
257-       "toolChoice" : true ,
258-       "functionPrompt" : " " 
259-     }
260-   ],
261-   "extractModels" : [ // 内容提取模型 
262-     {
263-       "model" : " gpt-3.5-turbo-1106"  ,
264-       "name" : " GPT35-1106"  ,
265-       "maxContext" : 16000 ,
266-       "maxResponse" : 4000 ,
267249      "inputPrice" : 0 ,
268250      "outputPrice" : 0 ,
251+       "censor" : false ,
252+       "vision" : false ,
253+       "datasetProcess" : false ,
269254      "toolChoice" : true ,
270-       "functionPrompt" : " " 
271-     }
272-   ],
273-   "qgModels" : [ // 生成下一步指引 
274-     {
275-       "model" : " gpt-3.5-turbo-1106"  ,
276-       "name" : " GPT35-1106"  ,
277-       "maxContext" : 1600 ,
278-       "maxResponse" : 4000 ,
279-       "inputPrice" : 0 ,
280-       "outputPrice" : 0 
255+       "functionCall" : false ,
256+       "customCQPrompt" : " "  ,
257+       "customExtractPrompt" : " "  ,
258+       "defaultSystemChatPrompt" : " "  ,
259+       "defaultConfig" :{} 
281260    }
282261  ],
283-   "vectorModels" : [  // 向量模型 
262+   "vectorModels" : [
284263    {
285264      "model" : " text-embedding-ada-002"  ,
286265      "name" : " Embedding-2"  ,
287266      "inputPrice" : 0 ,
267+       "outputPrice" : 0 ,
288268      "defaultToken" : 700 ,
289-       "maxToken" : 3000 
269+       "maxToken" : 3000 ,
270+       "weight" : 100 ,
271+       "defaultConfig" :{}  // 默认配置。例如,如果希望使用 embedding3-large 的话,可以传入 dimensions:1024,来返回1024维度的向量。(目前必须小于1536维度) 
290272    }
291273  ],
292-   "reRankModels" : [],  // 重排模型,暂时填空数组 
274+   "reRankModels" : [],
293275  "audioSpeechModels" : [
294276    {
295277      "model" : " tts-1"  ,
296278      "name" : " OpenAI TTS1"  ,
297279      "inputPrice" : 0 ,
298-       "baseUrl" : " "  ,
299-       "key" : " "  ,
280+       "outputPrice" : 0 ,
300281      "voices" : [
301282        { "label" : " Alloy"  , "value" : " alloy"  , "bufferId" : " openai-Alloy"   },
302283        { "label" : " Echo"  , "value" : " echo"  , "bufferId" : " openai-Echo"   },
@@ -310,7 +291,8 @@ weight: 708
310291  "whisperModel" : {
311292    "model" : " whisper-1"  ,
312293    "name" : " Whisper1"  ,
313-     "inputPrice" : 0 
294+     "inputPrice" : 0 ,
295+     "outputPrice" : 0 
314296  }
315297}
316298``` 
0 commit comments