Merge pull request #552 from utopeadia/main

Modify ollama embed return fields
This commit is contained in:
Calcium-Ion 2024-11-05 22:05:45 +08:00 committed by GitHub
commit 3037dfab5b
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 { 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"`
} }