fix: rerank model cannot use ai proxy (#3945)

* fix: collection list count

* fix: collection list count

* fix: rerank model cannot use ai proxy

* mongo init
This commit is contained in:
Archer
2025-03-03 11:49:35 +08:00
committed by GitHub
parent 4bc7f21182
commit efac5312b4
8 changed files with 43 additions and 7 deletions

View File

@@ -35,7 +35,7 @@ export const getAxiosConfig = (props?: { userKey?: OpenaiAccountType }) => {
const { userKey } = props || {};
const baseUrl = userKey?.baseUrl || global?.systemEnv?.oneapiUrl || openaiBaseUrl;
const apiKey = userKey?.key || global?.systemEnv?.chatApiKey || process.env.CHAT_API_KEY || '';
const apiKey = userKey?.key || global?.systemEnv?.chatApiKey || openaiBaseKey;
return {
baseUrl,

View File

@@ -1,4 +1,10 @@
{
"provider": "AliCloud",
"list": []
}
"list": [
{
"model": "SenseVoiceSmall",
"name": "SenseVoiceSmall",
"type": "stt"
}
]
}