feat(model): 切换至小米内部模型
This commit is contained in:
parent
500a5c10b0
commit
e98a93c943
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@ -15,6 +15,7 @@
|
|||||||
"Euqi",
|
"Euqi",
|
||||||
"groupchat",
|
"groupchat",
|
||||||
"Gruntfuggly",
|
"Gruntfuggly",
|
||||||
|
"instuct",
|
||||||
"langchain",
|
"langchain",
|
||||||
"langfuse",
|
"langfuse",
|
||||||
"metas",
|
"metas",
|
||||||
|
@ -122,7 +122,7 @@ const resultReport = {
|
|||||||
},
|
},
|
||||||
cardComponent.commonNote,
|
cardComponent.commonNote,
|
||||||
],
|
],
|
||||||
header: cardComponent.pendingHeader,
|
header: cardComponent.successHeader,
|
||||||
}
|
}
|
||||||
|
|
||||||
const cardMap = {
|
const cardMap = {
|
||||||
|
@ -46,7 +46,9 @@ const sendFunctionSelector = async ({
|
|||||||
return cardGender.genErrorCard("Invalid targetChatId or targetChatName")
|
return cardGender.genErrorCard("Invalid targetChatId or targetChatName")
|
||||||
}
|
}
|
||||||
return cardGender.genCard("functionSelector", {
|
return cardGender.genCard("functionSelector", {
|
||||||
functions: genCardOptions({ 总结消息: "summary-gpt-4o|总结消息" }),
|
functions: genCardOptions({
|
||||||
|
总结消息: "summary-qwen-72b-instruct-int4|总结消息",
|
||||||
|
}),
|
||||||
chatId,
|
chatId,
|
||||||
chatName,
|
chatName,
|
||||||
})
|
})
|
||||||
|
@ -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),
|
chatHistory: JSON.stringify(chatHistory),
|
||||||
time: new Date().toLocaleString("zh-CN", { timeZone: "Asia/Shanghai" }),
|
time: new Date().toLocaleString("zh-CN", { timeZone: "Asia/Shanghai" }),
|
||||||
})
|
})
|
||||||
|
@ -37,6 +37,12 @@ const modelMap = {
|
|||||||
apiKey: "sk-EhbBTR0QjhH22iLr9aCb04D2B0F44f88A07c2924Eb54CfA4",
|
apiKey: "sk-EhbBTR0QjhH22iLr9aCb04D2B0F44f88A07c2924Eb54CfA4",
|
||||||
baseURL: "https://api.gpt.ge/v1",
|
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",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user