mirror of
https://github.com/ollama/ollama.git
synced 2025-07-28 12:23:30 +02:00
embeddings endpoint
Co-Authored-By: Jeffrey Morgan <jmorganca@gmail.com>
This commit is contained in:
11
api/types.go
11
api/types.go
@@ -42,6 +42,17 @@ type GenerateRequest struct {
|
||||
Options map[string]interface{} `json:"options"`
|
||||
}
|
||||
|
||||
type EmbeddingRequest struct {
|
||||
Model string `json:"model"`
|
||||
Prompt string `json:"prompt"`
|
||||
|
||||
Options map[string]interface{} `json:"options"`
|
||||
}
|
||||
|
||||
type EmbeddingResponse struct {
|
||||
Embedding []float64 `json:"embedding"`
|
||||
}
|
||||
|
||||
type CreateRequest struct {
|
||||
Name string `json:"name"`
|
||||
Path string `json:"path"`
|
||||
|
Reference in New Issue
Block a user