Skip to content

Commit

Permalink
bugfix: jina code embed and search with the correct env flag
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker authored and skeptrunedev committed May 14, 2024
1 parent c7050c9 commit c57eaa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/operators/model_operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ pub async fn create_embeddings(
.filter(|s| !s.is_empty())
.unwrap_or("https://embedding.trieve.ai/bge-m3".to_string())
.to_string(),
"https://embedding.trieve.ai/jina-code" => std::env::var("EMBEDDING_SERVER_ORIGIN_BGEM3")
"https://embedding.trieve.ai/jina-code" => std::env::var("EMBEDDING_SERVER_ORIGIN_JINA_CODE")
.ok()
.filter(|s| !s.is_empty())
.unwrap_or("https://embedding.trieve.ai/jina-code".to_string())
Expand Down

0 comments on commit c57eaa1

Please sign in to comment.