Versions in this module Expand all Collapse all v0 v0.6.2 Mar 12, 2024 Changes in this version type ResponseBody + Code string + Message string v0.6.1 Mar 11, 2024 Changes in this version + const ApiBaseUrl + const ApiVersion + const ChatMessageRoleAssistant + const ChatMessageRoleSystem + const ChatMessageRoleUser + type Client struct + ApiBaseUrl string + ApiKey string + ApiVersion string + Model string + Params Parameters + func NewClient(key string) *Client + func (c *Client) CreateChatCompletion(messages []Messages) (*ResponseBody, error) + type Input struct + Messages []Messages + type Messages struct + Content string + Role string + type Output struct + FinishReason string + Text string + type Parameters struct + EnableSearch bool + type RequestBody struct + Input Input + Model string + Parameters Parameters + type ResponseBody struct + Output Output + RequestID string + Usage Usage + type Usage struct + InputTokens int + OutputTokens int