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
merging PR 46 (OPENAI_ENDPOINT environment variable support) with a few minor touchups
Dane Schneiderc947dcf6f798
diff --git a/README.md b/README.mdindex 6913e880..556aa4d2 100644--- a/README.md+++ b/README.md@@ -72,7 +72,7 @@📑 Manage context efficiently in the terminal. Easily add files or entire directories to context, and keep them updated automatically as you work so that models always have the latest state of your project.-🧠 Plandex relies on the OpenAI API and requires an `OPENAI_API_KEY` environment variable. Support for open source models, Google Gemini, and Anthropic Claude is coming soon. And an `OPENAI_ENDPOINT` environment variable is required for custom OpenAI endpoint.+🧠 Plandex relies on the OpenAI API and requires an `OPENAI_API_KEY` environment variable. Support for open source models, Google Gemini, and Anthropic Claude is coming soon. Use the `OPENAI_ENDPOINT` environment variable for a custom OpenAI endpoint.✅ Plandex supports Mac, Linux, FreeBSD, and Windows. It runs from a single binary with no dependencies.@@ -122,7 +122,7 @@ Then [generate an API key here.](https://platform.openai.com/account/api-keys)```bashcd your-projectexport OPENAI_API_KEY=...-export OPENAI_ENDPOINT=... #optional e.g. https://<your-proxy>/v1+export OPENAI_ENDPOINT=... # optional e.g. https://<your-proxy>/v1plandex new```diff --git a/app/cli/plan_exec/build.go b/app/cli/plan_exec/build.goindex d708b225..b23c3118 100644--- a/app/cli/plan_exec/build.go+++ b/app/cli/plan_exec/build.go@@ -40,7 +40,7 @@ func Build(params ExecParams, buildBg bool) (bool, error) {ConnectStream: !buildBg,ProjectPaths: paths.ActivePaths,ApiKey: os.Getenv("OPENAI_API_KEY"),- Endpoint: os.Getenv("OPENAI_ENDPOINT"),+ Endpoint: os.Getenv("OPENAI_ENDPOINT"),}, stream.OnStreamPlan)term.StopSpinner()diff --git a/app/cli/plan_exec/tell.go b/app/cli/plan_exec/tell.goindex a34d261b..ef043d7b 100644--- a/app/cli/plan_exec/tell.go+++ b/app/cli/plan_exec/tell.go@@ -71,7 +71,7 @@ func TellPlan(BuildMode: buildMode,IsUserContinue: isUserContinue,ApiKey: os.Getenv("OPENAI_API_KEY"),- Endpoint: os.Getenv("OPENAI_ENDPOINT"),+ Endpoint: os.Getenv("OPENAI_ENDPOINT"),}, stream.OnStreamPlan)term.StopSpinner()diff --git a/guides/USAGE.md b/guides/USAGE.mdindex 0803183f..f3a4494d 100644--- a/guides/USAGE.md+++ b/guides/USAGE.md@@ -5,7 +5,7 @@```bashcd your-projectexport OPENAI_API_KEY=...-export OPENAI_ENDPOINT=... #optional e.g. https://<your-proxy>/v1+export OPENAI_ENDPOINT=... # optional e.g. https://<your-proxy>/v1plandex new```diff --git a/releases/cli/versions/0.8.2.md b/releases/cli/versions/0.8.2.mdindex bfb41b3a..c9ad971b 100644--- a/releases/cli/versions/0.8.2.md+++ b/releases/cli/versions/0.8.2.md@@ -1,2 +1,3 @@- Fix root level --help/-h to use custom help command rather than cobra's help message (re: https://github.com/plandex-ai/plandex/issues/25)-- Include 'survey' fork (https://github.com/plandex-ai/survey) as a proper module instead of a local reference (https://github.com/plandex-ai/plandex/pull/37)\ No newline at end of file+- Include 'survey' fork (https://github.com/plandex-ai/survey) as a proper module instead of a local reference (https://github.com/plandex-ai/plandex/pull/37)+- Add support for OPENAI_ENDPOINT environment variable for custom OpenAI endpoints (https://github.com/plandex-ai/plandex/pull/46)\ No newline at end of filediff --git a/releases/server/versions/0.8.3.md b/releases/server/versions/0.8.3.mdindex 36881bfb..368d3faa 100644--- a/releases/server/versions/0.8.3.md+++ b/releases/server/versions/0.8.3.md@@ -1 +1,2 @@-- SMTP_FROM environment variable for setting from address when self-hosting and using SMTP\ No newline at end of file+- SMTP_FROM environment variable for setting from address when self-hosting and using SMTP (https://github.com/plandex-ai/plandex/pull/39)+- Add support for OPENAI_ENDPOINT environment variable for custom OpenAI endpoints (https://github.com/plandex-ai/plandex/pull/46)\ No newline at end of file