Documentation ¶
Index ¶
- type Client
- func (c *Client) CloseConversation(ctx context.Context, userId string) error
- func (c *Client) CreateConversationChatCompletion(ctx context.Context, request gogpt.ChatCompletionRequest) (gogpt.ChatCompletionResponse, error)
- func (c *Client) CreateConversationChatCompletionWithChannel(ctx context.Context, request gogpt.ChatCompletionRequest, channel string) (gogpt.ChatCompletionResponse, error)
- func (c *Client) CreateConversationCompletion(ctx context.Context, request gogpt.CompletionRequest) (gogpt.CompletionResponse, error)
- func (c *Client) CreateConversationCompletionWithChannel(ctx context.Context, request gogpt.CompletionRequest, channel string) (gogpt.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 ¶
func (*Client) CloseConversation ¶
func (*Client) CreateConversationChatCompletion ¶
func (c *Client) CreateConversationChatCompletion( ctx context.Context, request gogpt.ChatCompletionRequest, ) (gogpt.ChatCompletionResponse, error)
func (*Client) CreateConversationChatCompletionWithChannel ¶
func (c *Client) CreateConversationChatCompletionWithChannel( ctx context.Context, request gogpt.ChatCompletionRequest, channel string, ) (gogpt.ChatCompletionResponse, error)
func (*Client) CreateConversationCompletion ¶
func (c *Client) CreateConversationCompletion( ctx context.Context, request gogpt.CompletionRequest, ) (gogpt.CompletionResponse, error)
func (*Client) CreateConversationCompletionWithChannel ¶
func (c *Client) CreateConversationCompletionWithChannel( ctx context.Context, request gogpt.CompletionRequest, channel string, ) (gogpt.CompletionResponse, error)
func (*Client) WithMaxTurn ¶
Click to show internal directories.
Click to hide internal directories.