Feat: add rag [wip; skip-ci]
This commit is contained in:
@@ -106,3 +106,22 @@ type ChatToolsBody struct {
|
||||
} `json:"tools"`
|
||||
ToolChoice string `json:"tool_choice"`
|
||||
}
|
||||
|
||||
type EmbeddingResp struct {
|
||||
Embedding []float32 `json:"embedding"`
|
||||
Index uint32 `json:"index"`
|
||||
}
|
||||
|
||||
// type EmbeddingsResp 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