Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
func FromContext(ctx context.Context) types.TGenerator
func NewContext ¶
func NewContext(ctx context.Context, openaiTgenerator OpenaiTgenerator) context.Context
Types ¶
type OpenaiTgenerator ¶
func InitiateOpenaiClient ¶
func InitiateOpenaiClient(apikey string, conf config.Configuration) *OpenaiTgenerator
func (*OpenaiTgenerator) FetchEmbedding ¶ added in v0.7.12
func (*OpenaiTgenerator) GenerateChat ¶
func (ot *OpenaiTgenerator) GenerateChat(ctx context.Context, messages []types.Message, stream bool, functions string) (types.CompletionMessage, error)
Click to show internal directories.
Click to hide internal directories.