Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ChatProfiles []*Ref
View Source
var Profiles = make(map[string]*Ref)
Functions ¶
Types ¶
type Ref ¶
type Ref struct {
Config *config.Profile
Client *openai.Client
S *semaphore.Weighted
Samples *Samples
}
var Default *Ref
func (*Ref) Completion ¶ added in v0.0.4
func (ref *Ref) Completion(ctx context.Context, params openai.ChatCompletionNewParams) ( *openai.ChatCompletion, error, )
func (*Ref) Embeddings ¶ added in v0.0.4
func (ref *Ref) Embeddings(ctx context.Context, params openai.EmbeddingNewParams) ( *openai.CreateEmbeddingResponse, error, )
Click to show internal directories.
Click to hide internal directories.