mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-04 21:33:41 +08:00
Modify ollama embed return fields
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user