config

package
v0.32.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package config provides integration configuration for external coding tools (Claude Code, Codex, Droid, OpenCode) to use Ollama models.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntegrationModel added in v0.16.0

func IntegrationModel(appName string) string

IntegrationModel returns the first configured model for an integration, or empty string if not configured.

func IntegrationModels added in v0.16.0

func IntegrationModels(appName string) []string

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

func LoadIntegration(appName string) (*integration, error)

LoadIntegration returns the saved config for one integration.

func MarkIntegrationOnboarded added in v0.18.0

func MarkIntegrationOnboarded(appName string) error

MarkIntegrationOnboarded marks an integration as onboarded in Ollama's config.

func SaveAliases added in v0.18.0

func SaveAliases(appName string, aliases map[string]string) error

SaveAliases replaces the saved aliases for one integration.

func SaveIntegration added in v0.16.2

func SaveIntegration(appName string, models []string) error

func SetLastModel added in v0.16.0

func SetLastModel(model string) error

SetLastModel saves the last model that was run.

func SetLastSelection added in v0.16.0

func SetLastSelection(selection string) error

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.

Jump to

Keyboard shortcuts

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