package
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: Mar 8, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Embedding struct {
TextIndex int `json:"text_index"`
Embedding []float32 `json:"embedding"`
}
type Output struct {
Embeddings []Embedding `json:"embeddings"`
Usgae struct {
TotalTokens int `json:"total_tokens"`
} `json:"usage"`
RequestID string `json:"request_id"`
}
type Request struct {
Model string `json:"model"`
Input struct {
Texts []string `json:"texts"`
} `json:"input"`
Params struct {
TextType string `json:"text_type"`
} `json:"parameters"`
}
type Response struct {
Output Output `json:"output"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.