Documentation ¶
Index ¶
Constants ¶
View Source
const ( ModelGPT432K = "gpt-4-32k" ModelGPT4 = "gpt-4" ModelGPT3Dot5Turbo16K = "gpt-3.5-turbo-16k" ModelGPT3Dot5Turbo = "gpt-3.5-turbo" )
Variables ¶
This section is empty.
Functions ¶
func ListModels ¶
func ListModels() []string
Types ¶
type Client ¶
type Client struct {
*openai.Client
}
func (*Client) CreateChatCompletion ¶
func (s *Client) CreateChatCompletion(ctx context.Context, req llm.ChatCompletionRequest) (llm.ChatCompletionResponse, error)
func (*Client) CreateChatCompletionStream ¶
func (s *Client) CreateChatCompletionStream(ctx context.Context, req llm.ChatCompletionRequest, dataChan chan llm.ChatCompletionStreamResponse, errChan chan error)
func (*Client) ListModels ¶
Click to show internal directories.
Click to hide internal directories.