diff options
| author | Kujtim Hoxha <[email protected]> | 2025-04-09 17:49:24 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-09 17:49:24 +0200 |
| commit | e090223b1328ad8efccd57ee9b020aea67cb6641 (patch) | |
| tree | 3c45cdad120f4e799e92f0a83fad97f8a025cf4f /internal/config | |
| parent | fde04bbf85ea641a33a282b354d63f227f9945fb (diff) | |
| parent | 939ae03f42e61d0944da80381219e6bbdfc2d850 (diff) | |
| download | opencode-e090223b1328ad8efccd57ee9b020aea67cb6641.tar.gz opencode-e090223b1328ad8efccd57ee9b020aea67cb6641.zip | |
Merge pull request #26 from kujtimiihoxha/bedrock
Add initial support for bedrock
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{} |
