Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { Active() bool CanStream() bool NewCompletionStream(messages []Message) (chan string, error) NewCompletion(messages []Message) (*string, error) }
func NewProvider ¶
func NewProvider(t ProviderType) Provider
type ProviderType ¶
type ProviderType uint8
const ( ProviderTypeDeepAI ProviderType = 1 ProviderTypeChatGPTAI ProviderType = 2 ProviderOpchatgpts ProviderType = 3 )
Click to show internal directories.
Click to hide internal directories.