Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeData = iota TypeDone TypeError )
View Source
const ( RoleUser = "user" RoleAssistant = "assistant" RoleSystem = "system" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BigModel ¶
type BigModel interface { // Chat Receive a query for large model calls and write the output results to the Result channel in real time Chat(messages []*Message) chan Result }
BigModel interface
func NewChatGPT ¶
type Option ¶
type Option func(*ChatGPT)
func WithSpecifyBaseURL ¶
WithSpecifyBaseURL specify OPENAI API base url
func WithSpecifyModel ¶
WithSpecifyModel specify ChatGPT model
Click to show internal directories.
Click to hide internal directories.