mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
Add Metrics to api\embed
response (#5709)
* add prompt tokens to embed response * rm slog * metrics * types * prompt n * clean up * reset submodule * update tests * test name * list metrics
This commit is contained in:
parent
cef2c6054d
commit
1b44d873e7
6 changed files with 39 additions and 15 deletions
|
@ -267,6 +267,10 @@ type EmbedRequest struct {
|
|||
type EmbedResponse struct {
|
||||
Model string `json:"model"`
|
||||
Embeddings [][]float32 `json:"embeddings"`
|
||||
|
||||
TotalDuration time.Duration `json:"total_duration,omitempty"`
|
||||
LoadDuration time.Duration `json:"load_duration,omitempty"`
|
||||
PromptEvalCount int `json:"prompt_eval_count,omitempty"`
|
||||
}
|
||||
|
||||
// EmbeddingRequest is the request passed to [Client.Embeddings].
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue