providers

package
v0.0.0-...-221c3f5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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 NewAbstractProvider(
	URL string,
	Model string,
	AuthType string,
	CustomHeaders map[string]string,
) *AbstractProvider

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 NewAnthropicProvider(
	Model string,
	AuthType string,
	CustomHeaders map[string]string,
	MaxTokens string,
) IProvider

func NewAzureProvider

func NewAzureProvider(
	URL string,
	Model string,
	AuthType string,
	CustomHeaders map[string]string,
) IProvider

func NewCustomProvider

func NewCustomProvider(
	URL string,
	Model string,
	AuthType string,
	CustomHeaders map[string]string,
) IProvider

func NewDeepSeekProvider

func NewDeepSeekProvider(
	Model string,
	AuthType string,
	CustomHeaders map[string]string,
) IProvider

func NewGeminiProvider

func NewGeminiProvider(
	Model string,
	AuthType string,
	CustomHeaders map[string]string,
) IProvider

func NewGroqProvider

func NewGroqProvider(
	Model string,
	AuthType string,
	CustomHeaders map[string]string,
) IProvider

func NewMistralProvider

func NewMistralProvider(
	Model string,
	AuthType string,
	CustomHeaders map[string]string,
) IProvider

func NewOllamaProvider

func NewOllamaProvider(
	URL string,
	Model string,
	AuthType string,
	CustomHeaders map[string]string,
) IProvider

func NewOpenAIProvider

func NewOpenAIProvider(
	Model string,
	AuthType string,
	CustomHeaders map[string]string,
) IProvider

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL