Documentation
¶
Index ¶
- type AbstractProvider
- type AnthropicProvider
- type AzureProvider
- type CustomProvider
- type DeepSeekProvider
- type GeminiProvider
- type GroqProvider
- type IProvider
- func NewAnthropicProvider(Model string, AuthType string, CustomHeaders map[string]string, ...) IProvider
- func NewAzureProvider(URL string, Model string, AuthType string, CustomHeaders map[string]string) IProvider
- func NewCustomProvider(URL string, Model string, AuthType string, CustomHeaders map[string]string) IProvider
- func NewDeepSeekProvider(Model string, AuthType string, CustomHeaders map[string]string) IProvider
- func NewGeminiProvider(Model string, AuthType string, CustomHeaders map[string]string) IProvider
- func NewGroqProvider(Model string, AuthType string, CustomHeaders map[string]string) IProvider
- func NewMistralProvider(Model string, AuthType string, CustomHeaders map[string]string) IProvider
- func NewOllamaProvider(URL string, Model string, AuthType string, CustomHeaders map[string]string) IProvider
- func NewOpenAIProvider(Model string, AuthType string, CustomHeaders map[string]string) IProvider
- type MistralProvider
- type OllamaProvider
- type OpenAIProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractProvider ¶
type AbstractProvider struct {
URL string
Model string
AuthType string
CustomHeaders map[string]string
}
func NewAbstractProvider ¶
func (*AbstractProvider) PerformTestRequest ¶
func (p *AbstractProvider) PerformTestRequest() (int, error)
func (*AbstractProvider) Validate ¶
func (p *AbstractProvider) Validate() error
type AnthropicProvider ¶
type AnthropicProvider struct {
AbstractProvider
MaxTokens string
}
func (*AnthropicProvider) Validate ¶
func (p *AnthropicProvider) Validate() error
type AzureProvider ¶
type AzureProvider struct {
AbstractProvider
}
func (*AzureProvider) Validate ¶
func (p *AzureProvider) Validate() error
type CustomProvider ¶
type CustomProvider struct {
AbstractProvider
}
func (*CustomProvider) Validate ¶
func (p *CustomProvider) Validate() error
type DeepSeekProvider ¶
type DeepSeekProvider struct {
AbstractProvider
}
func (*DeepSeekProvider) Validate ¶
func (p *DeepSeekProvider) Validate() error
type GeminiProvider ¶
type GeminiProvider struct {
AbstractProvider
}
func (*GeminiProvider) Validate ¶
func (p *GeminiProvider) Validate() error
type GroqProvider ¶
type GroqProvider struct {
AbstractProvider
}
func (*GroqProvider) Validate ¶
func (p *GroqProvider) Validate() error
type IProvider ¶
type IProvider interface {
Validate() error
}
func NewAnthropicProvider ¶
func NewAzureProvider ¶
func NewCustomProvider ¶
func NewDeepSeekProvider ¶
func NewGeminiProvider ¶
func NewGroqProvider ¶
func NewMistralProvider ¶
func NewOllamaProvider ¶
type MistralProvider ¶
type MistralProvider struct {
AbstractProvider
}
func (*MistralProvider) Validate ¶
func (p *MistralProvider) Validate() error
type OllamaProvider ¶
type OllamaProvider struct {
AbstractProvider
}
func (*OllamaProvider) Validate ¶
func (p *OllamaProvider) Validate() error
type OpenAIProvider ¶
type OpenAIProvider struct {
AbstractProvider
}
func (*OpenAIProvider) Validate ¶
func (p *OpenAIProvider) Validate() error
Click to show internal directories.
Click to hide internal directories.