Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyResponse = errors.New("empty response") ErrModelNotFound = errors.New("model not found") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateGeneration ¶
func (c *Client) CreateGeneration(ctx context.Context, r *GenerationRequest) (*Generation, error)
func (*Client) GetNumTokens ¶
type Generation ¶
type Generation struct {
Text string `json:"text"`
}
type GenerationRequest ¶
type GenerationRequest struct {
Prompt string `json:"prompt"`
}
Click to show internal directories.
Click to hide internal directories.