package
Version:
v2.0.22
Opens a new window with list of versions in this module.
Published: Feb 27, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 7
Opens a new window with list of known importers.
Documentation
¶
func NewClient(apiKey string, db *badger.DB, logger *logging.Logger) *Client
type EmbeddingRequest struct {
Input string `json:"input"`
Model string `json:"model"`
EncodingFormat string `json:"encoding_format,omitempty"`
User string `json:"user,omitempty"`
}
type EmbeddingResult struct {
Vector []float64 `json:"embedding"`
Index int `json:"index"`
Object string `json:"object"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.