Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatGPTResponder ¶
type MockOpenAIClient ¶
type MockOpenAIClient struct { }
func NewMockClient ¶
func NewMockClient() *MockOpenAIClient
func (*MockOpenAIClient) RequestCompletion ¶
func (m *MockOpenAIClient) RequestCompletion(prompt string, temperature, model float32) (string, error)
type OpenAIClient ¶
type OpenAIClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(authToken string) *OpenAIClient
func (*OpenAIClient) RequestCompletion ¶
func (c *OpenAIClient) RequestCompletion(prompt string, temperature, openaiModel float32) (string, error)
RequestCompletion, request ChatGPT for a text completion.
Click to show internal directories.
Click to hide internal directories.