Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *plugins.PluginBase ApiKey *plugins.SetupQuestion ApiBaseURL *plugins.SetupQuestion ApiClient *openai.Client }
func NewClientCompatible ¶
func (*Client) ListModels ¶
func (*Client) Send ¶
func (o *Client) Send(ctx context.Context, msgs []*goopenai.ChatCompletionMessage, opts *common.ChatOptions) (ret string, err error)
func (*Client) SendStream ¶
func (o *Client) SendStream( msgs []*goopenai.ChatCompletionMessage, opts *common.ChatOptions, channel chan string, ) (err error)
Click to show internal directories.
Click to hide internal directories.