Documentation ¶
Index ¶
- type OpenAI
- func (o *OpenAI) ChatStream(ctx context.Context, req *llm.ChatCompletionRequest, ...)
- func (o *OpenAI) GenerateContentFromImage(ctx context.Context, req *llm.GenerateContentFromImageRequest) (*llm.GenerateContentFromImageResponse, error)
- func (o *OpenAI) GenerateImage(ctx context.Context, req *llm.GenerateImageRequest) (*llm.GenerateImageResponse, error)
- func (o *OpenAI) GetConf() llm.Conf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenAI ¶
func (*OpenAI) ChatStream ¶
func (o *OpenAI) ChatStream(ctx context.Context, req *llm.ChatCompletionRequest, respChan chan llm.ChatCompletionStreamResponse)
func (*OpenAI) GenerateContentFromImage ¶
func (o *OpenAI) GenerateContentFromImage(ctx context.Context, req *llm.GenerateContentFromImageRequest) (*llm.GenerateContentFromImageResponse, error)
func (*OpenAI) GenerateImage ¶
func (o *OpenAI) GenerateImage(ctx context.Context, req *llm.GenerateImageRequest) (*llm.GenerateImageResponse, error)
Click to show internal directories.
Click to hide internal directories.