Documentation ¶
Index ¶
- type Client
- func (c *Client) CloseConversation(ctx context.Context, userId string) error
- func (c *Client) CreateChatCompletion(ctx context.Context, request openai.ChatCompletionRequest) (openai.ChatCompletionResponse, error)
- func (c *Client) CreateChatCompletionWithChannel(ctx context.Context, request openai.ChatCompletionRequest, channel string) (openai.ChatCompletionResponse, error)
- func (c *Client) CreateConversationCompletion(ctx context.Context, request openai.CompletionRequest) (openai.CompletionResponse, error)
- func (c *Client) CreateConversationCompletionWithChannel(ctx context.Context, request openai.CompletionRequest, channel string) (openai.CompletionResponse, error)
- func (c *Client) WithLogger(l zerolog.Logger) *Client
- func (c *Client) WithMaxTurn(n int) *Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *openai.Client // contains filtered or unexported fields }
func NewClient ¶
func NewClient(client *openai.Client, ch conversation.Handler) *Client
func (*Client) CloseConversation ¶ added in v0.1.2
func (*Client) CreateChatCompletion ¶ added in v0.1.4
func (*Client) CreateChatCompletionWithChannel ¶ added in v0.1.4
func (*Client) CreateConversationCompletion ¶
func (*Client) CreateConversationCompletionWithChannel ¶
func (*Client) WithMaxTurn ¶
Click to show internal directories.
Click to hide internal directories.