|
@@ -23,6 +23,7 @@ export class BigModelApi implements LLMApi {
|
|
|
constructor() {
|
|
constructor() {
|
|
|
this.useApi = 'private';
|
|
this.useApi = 'private';
|
|
|
this.publicPath = 'https://open.bigmodel.cn/api/paas/v4/chat/completions';
|
|
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';
|
|
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 = {
|
|
const privateParams: any = {
|
|
|
prompt: userMessages,
|
|
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,
|
|
returnType: undefined,
|
|
|
knowledge_ids: undefined,
|
|
knowledge_ids: undefined,
|
|
|
document_ids: undefined,
|
|
document_ids: undefined,
|