summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-06-19 12:15:54 +0800
committerGitHub <noreply@github.com>2024-06-19 12:15:54 +0800
commit3b3d39cef0211b607d51360d0739022f953ba1a7 (patch)
tree65fefe139b939ef6f27ac172e8bde89305f51ecc /src/client
parent1fb06ecdc4daeed618ec971170e82931464a8399 (diff)
downloadaichat-3b3d39cef0211b607d51360d0739022f953ba1a7.tar.gz
refactor: rag add rag_minimum_score config (#617)
Diffstat (limited to 'src/client')
-rw-r--r--src/client/openai.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/openai.rs b/src/client/openai.rs
index 9d616ed..0c51b33 100644
--- a/src/client/openai.rs
+++ b/src/client/openai.rs
@@ -241,8 +241,7 @@ pub fn openai_build_chat_completions_body(data: ChatCompletionsData, model: &Mod
pub fn openai_build_embeddings_body(data: EmbeddingsData, model: &Model) -> Value {
json!({
"input": data.texts,
- "model": model.name(),
- "encoding_format": "float",
+ "model": model.name()
})
}