diff options
| author | Kujtim Hoxha <[email protected]> | 2025-03-24 11:47:39 +0100 |
|---|---|---|
| committer | Kujtim Hoxha <[email protected]> | 2025-03-24 11:47:39 +0100 |
| commit | 005b8ac16776512b2d4b1f22bd989da162ca1bad (patch) | |
| tree | cfe0d1da344ac31a467f1bea788ce80c723cd980 /cmd | |
| parent | e7258e38aeb46281fda474b8b7fcc3eee35edd9f (diff) | |
| download | opencode-005b8ac16776512b2d4b1f22bd989da162ca1bad.tar.gz opencode-005b8ac16776512b2d4b1f22bd989da162ca1bad.zip | |
initial working agent
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/root.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cmd/root.go b/cmd/root.go index 3879a3cf7..9e5ddbd7d 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -109,8 +109,6 @@ func setupSubscriptions(app *app.App) (chan tea.Msg, func()) { } } -// Execute adds all child commands to the root command and sets flags appropriately. -// This is called by main.main(). It only needs to happen once to the rootCmd. func Execute() { err := rootCmd.Execute() if err != nil { @@ -131,13 +129,14 @@ func loadConfig() { // LLM viper.SetDefault("models.big", string(models.DefaultBigModel)) - viper.SetDefault("models.little", string(models.DefaultLittleModel)) + viper.SetDefault("models.small", string(models.DefaultLittleModel)) viper.SetDefault("providers.openai.key", os.Getenv("OPENAI_API_KEY")) viper.SetDefault("providers.anthropic.key", os.Getenv("ANTHROPIC_API_KEY")) + viper.SetDefault("providers.groq.key", os.Getenv("GROQ_API_KEY")) viper.SetDefault("providers.common.max_tokens", 4000) viper.SetDefault("agents.default", "coder") - // + viper.ReadInConfig() workdir, err := os.Getwd() |
