Modify ollama embed return fields

This commit is contained in:
HowieWood 2024-11-05 20:12:51 +08:00 committed by GitHub
parent e5588fc1ee
commit 5253a0e7b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,5 +37,5 @@ type OllamaEmbeddingRequest struct {
type OllamaEmbeddingResponse struct {
Error string `json:"error,omitempty"`
Model string `json:"model"`
Embedding []float64 `json:"embedding,omitempty"`
Embedding []float64 `json:"embeddings,omitempty"`
}