Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.8.0
type Client struct {
// contains filtered or unexported fields
}
Client is a client for ChatGPT client
func NewAzureOpenAIClient ¶ added in v0.8.0
func NewAzureOpenAIClient(apiKey string, endpoint string, model string, modelMapping map[string]string, timeout time.Duration) *Client
NewAzureOpenAIClient creates a new GPTClient
func (*Client) FunctionCall ¶ added in v0.8.0
func (gpt *Client) FunctionCall(role string, prompt string, input string, funcs []openai.FunctionDefinition) (map[string]interface{}, error)
FunctionCall question to OpenAI in function calling format with given prompt and user input, and function definitions
Click to show internal directories.
Click to hide internal directories.