feat(model): 切换至小米内部模型
All checks were successful
Egg Server CI/CD / build-image (push) Successful in 46s
Egg Server CI/CD / refresh-image (push) Successful in 18s
Egg Server CI/CD / fast-deploy (push) Successful in 2s

This commit is contained in:
zhaoyingbo 2024-10-14 08:47:44 +00:00
parent 500a5c10b0
commit e98a93c943
5 changed files with 12 additions and 3 deletions

View File

@ -15,6 +15,7 @@
"Euqi",
"groupchat",
"Gruntfuggly",
"instuct",
"langchain",
"langfuse",
"metas",

View File

@ -122,7 +122,7 @@ const resultReport = {
},
cardComponent.commonNote,
],
header: cardComponent.pendingHeader,
header: cardComponent.successHeader,
}
const cardMap = {

View File

@ -46,7 +46,9 @@ const sendFunctionSelector = async ({
return cardGender.genErrorCard("Invalid targetChatId or targetChatName")
}
return cardGender.genCard("functionSelector", {
functions: genCardOptions({ : "summary-gpt-4o|总结消息" }),
functions: genCardOptions({
: "summary-qwen-72b-instruct-int4|总结消息",
}),
chatId,
chatName,
})

View File

@ -13,7 +13,7 @@ const chatHistory = [
},
]
const res = await llm.invoke("summary-gpt-4o", {
const res = await llm.invoke("summary-qwen-72b-instruct-int4", {
chatHistory: JSON.stringify(chatHistory),
time: new Date().toLocaleString("zh-CN", { timeZone: "Asia/Shanghai" }),
})

View File

@ -37,6 +37,12 @@ const modelMap = {
apiKey: "sk-EhbBTR0QjhH22iLr9aCb04D2B0F44f88A07c2924Eb54CfA4",
baseURL: "https://api.gpt.ge/v1",
},
"qwen-72b-instruct-int4/v1": {
model: "qwen-72b-instruct-int4/v1",
apiKey: "xx",
baseURL:
"http://ms-13871-qwen-model-128k-9-1012195754.kscn-tj5-prod2-cloudml.xiaomi.srv/v1",
},
}
/**