Documentation
¶
Index ¶
- type Client
- func (o *Client) IsConfigured() bool
- func (o *Client) ListModels() (ret []string, err error)
- func (o *Client) NeedsRawMode(modelName string) bool
- func (o *Client) Send(ctx context.Context, msgs []*chat.ChatCompletionMessage, ...) (ret string, err error)
- func (o *Client) SendStream(msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, ...) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*plugins.PluginBase
ApiUrl *plugins.SetupQuestion
ApiKey *plugins.SetupQuestion
ApiHttpTimeout *plugins.SetupQuestion
// contains filtered or unexported fields
}
func (*Client) IsConfigured ¶ added in v1.4.266
IsConfigured returns true only if OLLAMA_API_URL environment variable is explicitly set
func (*Client) ListModels ¶
func (*Client) NeedsRawMode ¶
func (*Client) Send ¶
func (o *Client) Send(ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions) (ret string, err error)
func (*Client) SendStream ¶
func (o *Client) SendStream(msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, channel chan string) (err error)
Click to show internal directories.
Click to hide internal directories.