Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) Chat ¶
func (c *Client) Chat(ctx context.Context, req *CompleteRequest) (*CompleteResponse, error)
type CompleteRequest ¶
type CompleteRequest struct { Model string `json:"model"` Messages []llm.Message `json:"messages"` Temperature *float64 `json:"temperature,omitempty"` TopP *float64 `json:"top_p,omitempty"` MaxTokens *int `json:"max_tokens,omitempty"` Stream *bool `json:"stream,omitempty"` SafeMode *bool `json:"safe_mode,omitempty"` RandomSeed *int `json:"random_seed,omitempty"` }
type CompleteResponse ¶
type CompletionChoice ¶
Click to show internal directories.
Click to hide internal directories.