ScuttleBot

scuttlebot / internal / llm / config.go
Source Blame History 44 lines
5ac549c… lmata 1 package llm
5ac549c… lmata 2
5ac549c… lmata 3 // BackendConfig holds configuration for a single LLM backend instance.
5ac549c… lmata 4 type BackendConfig struct {
5ac549c… lmata 5 // Backend is the provider type. Supported values:
5ac549c… lmata 6 //
5ac549c… lmata 7 // Native APIs:
5ac549c… lmata 8 // anthropic, gemini, bedrock, ollama
5ac549c… lmata 9 //
5ac549c… lmata 10 // OpenAI-compatible (Bearer token auth, /v1/models discovery):
5ac549c… lmata 11 // openai, openrouter, together, groq, fireworks, mistral, ai21,
5ac549c… lmata 12 // huggingface, deepseek, cerebras, xai,
5ac549c… lmata 13 // litellm, lmstudio, jan, localai, vllm, anythingllm
5ac549c… lmata 14 Backend string
5ac549c… lmata 15
5ac549c… lmata 16 // APIKey is the authentication key or token for cloud backends.
5ac549c… lmata 17 APIKey string
5ac549c… lmata 18
5ac549c… lmata 19 // BaseURL overrides the default base URL for OpenAI-compatible backends.
5ac549c… lmata 20 // For named backends (e.g. "openai"), this defaults from KnownBackends.
5ac549c… lmata 21 // Required for custom/self-hosted OpenAI-compatible endpoints.
5ac549c… lmata 22 BaseURL string
5ac549c… lmata 23
5ac549c… lmata 24 // Model is the model ID to use. If empty, the first discovered model
5ac549c… lmata 25 // that passes the allow/block filter is used.
5ac549c… lmata 26 Model string
5ac549c… lmata 27
5ac549c… lmata 28 // Region is the AWS region (e.g. "us-east-1"). Bedrock only.
5ac549c… lmata 29 Region string
5ac549c… lmata 30
5ac549c… lmata 31 // AWSKeyID is the AWS access key ID. Bedrock only.
5ac549c… lmata 32 AWSKeyID string
5ac549c… lmata 33
5ac549c… lmata 34 // AWSSecretKey is the AWS secret access key. Bedrock only.
5ac549c… lmata 35 AWSSecretKey string
5ac549c… lmata 36
5ac549c… lmata 37 // Allow is a list of regex patterns. If non-empty, only model IDs matching
5ac549c… lmata 38 // at least one pattern are returned by DiscoverModels.
5ac549c… lmata 39 Allow []string
5ac549c… lmata 40
5ac549c… lmata 41 // Block is a list of regex patterns. Model IDs matching any pattern are
5ac549c… lmata 42 // excluded from DiscoverModels results.
5ac549c… lmata 43 Block []string
5ac549c… lmata 44 }

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button