summaryrefslogtreecommitdiffstats
path: root/src/client/openai_compatible.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2025-02-06 19:20:48 +0800
committerGitHub <noreply@github.com>2025-02-06 19:20:48 +0800
commita491820ab5ff9bb58e62fd25d88f31ab53a81db9 (patch)
tree86a84d7176a5fb16bce9b195808e952d181a8146 /src/client/openai_compatible.rs
parent4812e446ee30467bd3ecce983a826f7649de7110 (diff)
downloadaichat-a491820ab5ff9bb58e62fd25d88f31ab53a81db9.tar.gz
feat: support model alias (#1150)
Diffstat (limited to 'src/client/openai_compatible.rs')
-rw-r--r--src/client/openai_compatible.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/openai_compatible.rs b/src/client/openai_compatible.rs
index 30bc464..4f77e88 100644
--- a/src/client/openai_compatible.rs
+++ b/src/client/openai_compatible.rs
@@ -149,7 +149,7 @@ pub fn generic_build_rerank_body(data: &RerankData, model: &Model) -> Value {
} = data;
let mut body = json!({
- "model": model.name(),
+ "model": model.real_name(),
"query": query,
"documents": documents,
});