feat: default model (#3662)

* move model config

* feat: default model
This commit is contained in:
Archer
2025-01-24 18:44:43 +08:00
committed by archer
parent 2015bbe9a9
commit 51fac7431f
167 changed files with 2999 additions and 2899 deletions

View File

@@ -1,6 +1,6 @@
import { addLog } from '../../../common/system/log';
import { POST } from '../../../common/api/serverRequest';
import { getFirstReRankModel } from '../model';
import { getDefaultRerankModel } from '../model';
import { getAxiosConfig } from '../config';
type PostReRankResponse = {
@@ -19,7 +19,7 @@ export function reRankRecall({
query: string;
documents: { id: string; text: string }[];
}): Promise<ReRankCallResult> {
const model = getFirstReRankModel();
const model = getDefaultRerankModel();
if (!model || !model?.requestUrl) {
return Promise.reject('no rerank model');