Documentation
¶
Index ¶
Constants ¶
View Source
const ( TextEmbeddingV1 = "text-embedding-v1" TextEmbeddingAsyncV1 = "text-embedding-async-v1" TextEmbeddingV2 = "text-embedding-v2" TextEmbeddingAsyncV2 = "text-embedding-async-v2" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelEmbedding ¶
type ModelEmbedding = string
type Response ¶
type Response struct {
Output Output `json:"output"`
Usgae struct {
TotalTokens int `json:"total_tokens"`
} `json:"usage"`
RequestID string `json:"request_id"`
}
func CreateEmbedding ¶
func CreateEmbedding(ctx context.Context, req *Request, cli httpclient.IHttpClient, token string) (*Response, error)
Click to show internal directories.
Click to hide internal directories.