mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-30 05:29:53 +00:00
add bedrock support
This commit is contained in:
parent
fde04bbf85
commit
939ae03f42
8 changed files with 217 additions and 7 deletions
|
|
@ -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{}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue