Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements llm.ChatModel for OpenAI's /chat/completions endpoint.
func (*Client) Chat ¶
func (c *Client) Chat(ctx context.Context, req protocol.ChatRequest) (*protocol.ChatResponse, error)
Chat executes a chat completion request against OpenAI.
func (*Client) StreamChat ¶
func (c *Client) StreamChat(ctx context.Context, req protocol.ChatRequest) (protocol.ChatStream, error)
StreamChat uses SSE stream from /chat/completions with stream=true.
Click to show internal directories.
Click to hide internal directories.