4.8.20 update (#3706)

* fix: rerank auth token

* feat: check null value

* bind notify

* perf: reasoning config

* Adapt mongo 4.x index
This commit is contained in:
Archer
2025-02-06 14:34:43 +08:00
committed by GitHub
parent 772c1cde77
commit d857a391b3
14 changed files with 61 additions and 30 deletions

View File

@@ -61,6 +61,9 @@ export const getModelFromList = (
model: string
) => {
const modelData = modelList.find((item) => item.model === model) ?? modelList[0];
if (!modelData) {
throw new Error('No Key model is configured');
}
const provider = getModelProvider(modelData.provider);
return {
...modelData,