mirror of
https://github.com/perstarkse/minne.git
synced 2026-11-22 14:34:05 +01:00
release: 1.0.0
fix: cargo dist
This commit is contained in:
1 parent
07421fdb18
commit
8664abdf01
54 files changed
+760
-631
No files matched your search
@@ -250,9 +250,8 @@ impl EmbeddingProvider {
|
||||
|
||||
match config.embedding_backend {
|
||||
EmbeddingBackend::OpenAI => {
|
||||
let client = openai_client.ok_or_else(|| {
|
||||
anyhow!("OpenAI embedding backend requires an OpenAI client")
|
||||
})?;
|
||||
let client = openai_client
|
||||
.ok_or_else(|| anyhow!("OpenAI embedding backend requires an OpenAI client"))?;
|
||||
// Use defaults that match SystemSettings initial values
|
||||
Self::new_openai(client, "text-embedding-3-small".to_string(), 1536)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user