summaryrefslogtreecommitdiff
path: root/models/embed.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-11-22 14:56:24 +0300
committerGrail Finder <wohilas@gmail.com>2025-11-22 14:56:24 +0300
commit50d7bfced396485f1d313cce11a73c8f386f7956 (patch)
tree2e9e2af2ad74d39a48c66be4eb38ebf100ced2af /models/embed.go
parent5fe03fa66c30f5d7ca6cdf9de1b1cfa2c38d6a45 (diff)
Enha: embedgemma model
Diffstat (limited to 'models/embed.go')
-rw-r--r--models/embed.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/models/embed.go b/models/embed.go
new file mode 100644
index 0000000..078312c
--- /dev/null
+++ b/models/embed.go
@@ -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"`
+}