package
Version:
v0.0.9
Opens a new window with list of versions in this module.
Published: Mar 31, 2023
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func CreateChat(client *openai.Client, userID, content string) (*openai.ChatCompletionResponse, error)
func GetClient() *openai.Client
type Chat struct {
Question string `json:"question,omitempty"`
Answer string `json:"answer,omitempty"`
}
type ChatCompletionResponse = openai.ChatCompletionResponse
Source Files
¶
Click to show internal directories.
Click to hide internal directories.