diff options
| author | Kujtim Hoxha <[email protected]> | 2025-04-09 17:45:41 +0200 |
|---|---|---|
| committer | Kujtim Hoxha <[email protected]> | 2025-04-09 17:45:41 +0200 |
| commit | 939ae03f42e61d0944da80381219e6bbdfc2d850 (patch) | |
| tree | 3c45cdad120f4e799e92f0a83fad97f8a025cf4f /internal/config | |
| parent | fde04bbf85ea641a33a282b354d63f227f9945fb (diff) | |
| download | opencode-939ae03f42e61d0944da80381219e6bbdfc2d850.tar.gz opencode-939ae03f42e61d0944da80381219e6bbdfc2d850.zip | |
add bedrock support
Diffstat (limited to 'internal/config')
| -rw-r--r-- | internal/config/config.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go index 03b26e32c..802905887 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -36,6 +36,11 @@ type Model struct { // TODO: Maybe support multiple models for different purposes } +type AnthropicConfig struct { + DisableCache bool `json:"disableCache"` + UseBedrock bool `json:"useBedrock"` +} + type Provider struct { APIKey string `json:"apiKey"` Enabled bool `json:"enabled"` @@ -130,6 +135,8 @@ func Load(debug bool) error { defaultModelSet = true } } + + viper.SetDefault("providers.bedrock.enabled", true) // TODO: add more providers cfg = &Config{} |
