Documentation
¶
Overview ¶
Package config provides integration configuration for external coding tools (Claude Code, Codex, Droid, OpenCode) to use Ollama models.
Index ¶
- func IntegrationModel(appName string) string
- func IntegrationModels(appName string) []string
- func LastModel() string
- func LastSelection() string
- func LoadIntegration(appName string) (*integration, error)
- func MarkIntegrationOnboarded(appName string) error
- func SaveAliases(appName string, aliases map[string]string) error
- func SaveIntegration(appName string, models []string) error
- func SetLastModel(model string) error
- func SetLastSelection(selection string) error
- type IntegrationConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IntegrationModel ¶ added in v0.16.0
IntegrationModel returns the first configured model for an integration, or empty string if not configured.
func IntegrationModels ¶ added in v0.16.0
IntegrationModels returns all configured models for an integration, or nil.
func LastModel ¶ added in v0.16.0
func LastModel() string
LastModel returns the last model that was run, or empty string if none.
func LastSelection ¶ added in v0.16.0
func LastSelection() string
LastSelection returns the last menu selection ("run" or integration name), or empty string if none.
func LoadIntegration ¶ added in v0.18.0
LoadIntegration returns the saved config for one integration.
func MarkIntegrationOnboarded ¶ added in v0.18.0
MarkIntegrationOnboarded marks an integration as onboarded in Ollama's config.
func SaveAliases ¶ added in v0.18.0
SaveAliases replaces the saved aliases for one integration.
func SaveIntegration ¶ added in v0.16.2
func SetLastModel ¶ added in v0.16.0
SetLastModel saves the last model that was run.
func SetLastSelection ¶ added in v0.16.0
SetLastSelection saves the last menu selection ("run" or integration name).
Types ¶
type IntegrationConfig ¶ added in v0.18.0
type IntegrationConfig = integration
IntegrationConfig is the persisted config for one integration.