providers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllProvidersInfo

func AllProvidersInfo() map[internaltypes.APIProvider]ProviderInfo

func DefaultBaseURL

func DefaultBaseURL(providerName string) string

func NeedsCatalogReseed

func NeedsCatalogReseed(providerName string, knownModelIDs []string) bool

func ResolveProviderFromString

func ResolveProviderFromString(s string) internaltypes.APIProvider

Types

type Client

type Client = internalproviders.Client

func NewClient

func NewClient(apiKey string, providerType internaltypes.APIProvider) *Client

type Config

type Config = internalproviders.Config

func GetProviderConfig

func GetProviderConfig(provider internaltypes.APIProvider) *Config

type DiscoveryResult

type DiscoveryResult = internalproviders.DiscoveryResult

func DiscoverProviders

func DiscoverProviders(ctx context.Context) []DiscoveryResult

type FetchedModel

type FetchedModel = internalproviders.FetchedModel

func FetchModels

func FetchModels(ctx context.Context, providerName, baseURL, apiKey string) ([]FetchedModel, error)

func StaticModels

func StaticModels(providerName string) []FetchedModel

type ModelInfo

type ModelInfo = internalproviders.ModelInfo

func GetModelInfo

func GetModelInfo(provider internaltypes.APIProvider, model string) (ModelInfo, bool)

type ProviderInfo

type ProviderInfo = internalproviders.ProviderInfo

Jump to

Keyboard shortcuts

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