Skip to content

Commit eef66d8

Browse files
committed
fix(ui): 更新BaiLian模型embedding和rerank接口地址
更新BaiLian提供商embedding和rerank模型类型的默认基础URL,以匹配最新的API端点路径。
1 parent 2ced198 commit eef66d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ui/ModelModal/src/ModelModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,13 +612,13 @@ export const ModelModal: React.FC<ModelModalProps> = ({
612612
if (it.label === 'AzureOpenAI') return '';
613613
if (it.label === 'BaiLian') {
614614
if (model_type === 'embedding') {
615-
return 'https://dashscope.aliyuncs.com/compatible-mode/v1/embeddings#';
615+
return 'https://dashscope.aliyuncs.com/api/v1/services/embeddings/text-embedding/text-embedding#';
616616
}
617617
if (
618618
model_type === 'rerank' ||
619619
model_type === 'reranker'
620620
) {
621-
return 'https://dashscope.aliyuncs.com/compatible-api/v1/reranks#';
621+
return 'https://dashscope.aliyuncs.com/api/v1/services/rerank/text-rerank/text-rerank#';
622622
}
623623
}
624624
return it.defaultBaseUrl;

0 commit comments

Comments
 (0)