Commit eabc605f by Calcium-Ion Committed by GitHub

Merge pull request #552 from utopeadia/main

Modify ollama embed return fields
parents 7b203eb5 9e550eab
...@@ -37,5 +37,5 @@ type OllamaEmbeddingRequest struct { ...@@ -37,5 +37,5 @@ type OllamaEmbeddingRequest struct {
type OllamaEmbeddingResponse struct { type OllamaEmbeddingResponse struct {
Error string `json:"error,omitempty"` Error string `json:"error,omitempty"`
Model string `json:"model"` Model string `json:"model"`
Embedding []float64 `json:"embedding,omitempty"` Embedding []float64 `json:"embeddings,omitempty"`
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment