Enha: embedgemma model

This commit is contained in:
Grail Finder
2025-11-22 14:56:24 +03:00
parent 5fe03fa66c
commit 50d7bfced3
4 changed files with 123 additions and 36 deletions

15
models/embed.go Normal file
View 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"`
}