ソースを参照

增加私有请求方式的注释

Ryuiso 1 年間 前
コミット
6608a75c5d
1 ファイル変更5 行追加4 行削除
  1. 5 4
      app/client/platforms/bigmodel.ts

+ 5 - 4
app/client/platforms/bigmodel.ts

@@ -23,6 +23,7 @@ export class BigModelApi implements LLMApi {
   constructor() {
     this.useApi = 'private';
     this.publicPath = 'https://open.bigmodel.cn/api/paas/v4/chat/completions';
+    // 配置私有请求地址
     this.privatePath = 'https://open.bigmodel.cn/api/llm-application/open/model-api/1828613766624038913/sse-invoke';
   }
 
@@ -67,11 +68,11 @@ export class BigModelApi implements LLMApi {
     // 私有大模型参数
     const privateParams: any = {
       prompt: userMessages,
-      model: 'glm-4-0520',// 模型
-      temperature: 0.01,// 采样温度
-      top_p: 0.7,// 核取样
+      // model: 'glm-4-0520',// 模型
+      // temperature: 0.01,// 采样温度
+      // top_p: 0.7,// 核取样
       // 进阶配置
-      request_id: 'jianke2024',
+      request_id: 'jkec2024',
       returnType: undefined,
       knowledge_ids: undefined,
       document_ids: undefined,