Enha: embedgemma model
This commit is contained in:
15
models/embed.go
Normal file
15
models/embed.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
type LCPEmbedResp struct {
|
||||
Model string `json:"model"`
|
||||
Object string `json:"object"`
|
||||
Usage struct {
|
||||
PromptTokens int `json:"prompt_tokens"`
|
||||
TotalTokens int `json:"total_tokens"`
|
||||
} `json:"usage"`
|
||||
Data []struct {
|
||||
Embedding []float32 `json:"embedding"`
|
||||
Index int `json:"index"`
|
||||
Object string `json:"object"`
|
||||
} `json:"data"`
|
||||
}
|
||||
Reference in New Issue
Block a user