Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
Include 'openrouter' in list of model providers when adding a custom model, fixes #107
Dane Schneidera940d2fd74e7
diff --git a/app/cli/cmd/models.go b/app/cli/cmd/models.goindex 813a6a84..22349661 100644--- a/app/cli/cmd/models.go+++ b/app/cli/cmd/models.go@@ -312,12 +312,12 @@ func listAvailableModels(cmd *cobra.Command, args []string) {if customModelsOnly {if len(customModels) > 0 {- term.PrintCmds("", "models", "set-model", "models create", "models delete")+ term.PrintCmds("", "models", "set-model", "models add", "models delete")} else {- term.PrintCmds("", "models create")+ term.PrintCmds("", "models add")}} else {- term.PrintCmds("", "models available --custom", "models", "set-model", "models create", "models delete")+ term.PrintCmds("", "models available --custom", "models", "set-model", "models add", "models delete")}}@@ -336,7 +336,7 @@ func deleteCustomModel(cmd *cobra.Command, args []string) {if len(models) == 0 {fmt.Println("🤷♂️ No custom models")fmt.Println()- term.PrintCmds("", "models create")+ term.PrintCmds("", "models add")return}@@ -402,7 +402,7 @@ func deleteCustomModel(cmd *cobra.Command, args []string) {fmt.Printf("✅ Deleted custom model %s\n", color.New(color.Bold, term.ColorHiCyan).Sprint(string(modelToDelete.Provider)+" → "+modelToDelete.ModelName))fmt.Println()- term.PrintCmds("", "models available", "models create")+ term.PrintCmds("", "models available", "models add")}func renderSettings(settings *shared.PlanSettings) {diff --git a/app/shared/plan_settings.go b/app/shared/plan_settings.goindex d723d185..287c0e27 100644--- a/app/shared/plan_settings.go+++ b/app/shared/plan_settings.go@@ -9,7 +9,12 @@ const (ModelProviderCustom ModelProvider = "custom")-var AllModelProviders = []string{string(ModelProviderOpenAI), string(ModelProviderTogether), string(ModelProviderCustom)}+var AllModelProviders = []string{+ string(ModelProviderOpenAI),+ string(ModelProviderOpenRouter),+ string(ModelProviderTogether),+ string(ModelProviderCustom),+}var BaseUrlByProvider = map[ModelProvider]string{ModelProviderOpenAI: OpenAIV1BaseUrl,diff --git a/releases/cli/versions/0.9.1.md b/releases/cli/versions/0.9.1.mdindex beb7ecf3..d133849c 100644--- a/releases/cli/versions/0.9.1.md+++ b/releases/cli/versions/0.9.1.md@@ -1,2 +1,3 @@- Fix for occasional stream TUI panic during builds with long file paths (https://github.com/plandex-ai/plandex/issues/105)-- If auto-upgrade fails due to a permissions issue, suggest re-running command with `sudo` (https://github.com/plandex-ai/plandex/issues/97 - thanks @kalil0321!)\ No newline at end of file+- If auto-upgrade fails due to a permissions issue, suggest re-running command with `sudo` (https://github.com/plandex-ai/plandex/issues/97 - thanks @kalil0321!)+- Include 'openrouter'in list of model providers when adding a custom model (https://github.com/plandex-ai/plandex/issues/107)\ No newline at end of filediff --git a/releases/server/versions/0.9.1.md b/releases/server/versions/0.9.1.mdnew file mode 100644index 00000000..4c2fa328--- /dev/null+++ b/releases/server/versions/0.9.1.md@@ -0,0 +1,2 @@+- Added an auto-verify and auto-fix step to plan builds to improve reliability and reduce syntax errors, mistaken duplication or removal of code, and other similar issues.+- Improvements to auto-continue check. It should now do a better job determining whether a plan is finished or should automatically continue.\ No newline at end of file