diff options
| author | sigoden <sigoden@gmail.com> | 2025-02-06 19:20:48 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-06 19:20:48 +0800 |
| commit | a491820ab5ff9bb58e62fd25d88f31ab53a81db9 (patch) | |
| tree | 86a84d7176a5fb16bce9b195808e952d181a8146 /src/client/openai_compatible.rs | |
| parent | 4812e446ee30467bd3ecce983a826f7649de7110 (diff) | |
| download | aichat-a491820ab5ff9bb58e62fd25d88f31ab53a81db9.tar.gz | |
feat: support model alias (#1150)
Diffstat (limited to 'src/client/openai_compatible.rs')
| -rw-r--r-- | src/client/openai_compatible.rs | 2 |
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, }); |
