Documentation
¶
Index ¶
- type GenerativeAIClient
- func (g *GenerativeAIClient) Close() error
- func (g *GenerativeAIClient) CreateChatCompletion(ctx context.Context, req *openai.ChatCompletionRequest) (*openai.ChatCompletionResponse, error)
- func (g *GenerativeAIClient) CreateChatCompletionStream(ctx context.Context, req *openai.ChatCompletionRequest) (*openai.ChatCompletionStream, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenerativeAIClient ¶
type GenerativeAIClient struct {
// contains filtered or unexported fields
}
func NewGenerativeAIClient ¶
func NewGenerativeAIClient(ctx context.Context, conf *config.Config) *GenerativeAIClient
func (*GenerativeAIClient) Close ¶
func (g *GenerativeAIClient) Close() error
func (*GenerativeAIClient) CreateChatCompletion ¶
func (g *GenerativeAIClient) CreateChatCompletion( ctx context.Context, req *openai.ChatCompletionRequest, ) (*openai.ChatCompletionResponse, error)
func (*GenerativeAIClient) CreateChatCompletionStream ¶
func (g *GenerativeAIClient) CreateChatCompletionStream( ctx context.Context, req *openai.ChatCompletionRequest, ) (*openai.ChatCompletionStream, error)
Click to show internal directories.
Click to hide internal directories.