Versions in this module Expand all Collapse all v0 v0.1.4 Apr 13, 2023 v0.1.3 Mar 28, 2023 v0.1.2 Mar 28, 2023 v0.1.1 Mar 28, 2023 Changes in this version + const ApiCompletions + const ApiModels + const BaseApiUrl + type ChatGPTSettings struct + MaxTokens int + Model string + N int + Stop string + Temperature float32 + TopP int + func (instance *ChatGPTSettings) Load(m map[string]interface{}) (err error) + func (instance *ChatGPTSettings) Map() (m map[string]interface{}) + type OpenAIChatGPT struct + func NewOpenAIChatGPT(settings *commons.SettingsExternal) (instance *OpenAIChatGPT, err error) + func (instance *OpenAIChatGPT) Complete(prompt string, payload map[string]interface{}) (text string, response map[string]interface{}, err error) + func (instance *OpenAIChatGPT) Get(url string) (response map[string]interface{}, err error) + func (instance *OpenAIChatGPT) Post(url string, body interface{}) (response map[string]interface{}, err error) v0.1.0 Mar 16, 2023