Skip to content

Commit

Permalink
bugfix: jina-code embedding model correct name
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker committed May 14, 2024
1 parent 06f29c4 commit c7050c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/src/operators/model_operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ pub async fn create_embedding(
.filter(|s| !s.is_empty())
.unwrap_or("https://embedding.trieve.ai/jinaai-code".to_string())
}
"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())
}
_ => config_embedding_base_url,
};

Expand Down

0 comments on commit c7050c9

Please sign in to comment.