Documentation ¶
Index ¶
- func AsEmbeddingModelProviderConfig(emp types.EmbeddingModelProvider, export bool) (config.ModelProviderConfig, error)
- func CompareRequiredFields(a, b any) error
- func ExportConfig(c any) (any, error)
- func FindProviderConfig(name string, providers []config.ModelProviderConfig) *config.ModelProviderConfig
- func GetProviderCfg(name string, embeddingsConfig config.EmbeddingsConfig) (*config.ModelProviderConfig, error)
- func GetProviderConfig(providerType string) (types.EmbeddingModelProvider, error)
- func GetSelectedEmbeddingsModelProvider(selected string, embeddingsConfig config.EmbeddingsConfig) (types.EmbeddingModelProvider, error)
- func ProviderFromConfig(providerConfig config.ModelProviderConfig) (types.EmbeddingModelProvider, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsEmbeddingModelProviderConfig ¶ added in v0.3.0
func AsEmbeddingModelProviderConfig(emp types.EmbeddingModelProvider, export bool) (config.ModelProviderConfig, error)
func CompareRequiredFields ¶ added in v0.3.0
func ExportConfig ¶ added in v0.3.0
func FindProviderConfig ¶ added in v0.3.0
func FindProviderConfig(name string, providers []config.ModelProviderConfig) *config.ModelProviderConfig
func GetProviderCfg ¶ added in v0.3.0
func GetProviderCfg(name string, embeddingsConfig config.EmbeddingsConfig) (*config.ModelProviderConfig, error)
func GetProviderConfig ¶ added in v0.3.0
func GetProviderConfig(providerType string) (types.EmbeddingModelProvider, error)
func GetSelectedEmbeddingsModelProvider ¶ added in v0.3.0
func GetSelectedEmbeddingsModelProvider(selected string, embeddingsConfig config.EmbeddingsConfig) (types.EmbeddingModelProvider, error)
func ProviderFromConfig ¶ added in v0.3.0
func ProviderFromConfig(providerConfig config.ModelProviderConfig) (types.EmbeddingModelProvider, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.