mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
chore: clean up env var usage in aibridge (#24783)
> AI tools where used when creating this PR This PR removes environment variable parsing from `/aibridge` directory. Added env variables/flags for dump dir as coder options. Only added to new indexed provider options (`CODER_AIBRIDGE_PROVIDER_<N>_*`) not to deprecated legacy env variables (`CODER_AIBRIDGE_ANTHROPIC_*` and `CODER_AIBRIDGE_OPENAI_KEY_*`). Reverted adding `MaxRetries` option as it will be removed soon due to key failover work: https://github.com/coder/coder/pull/24783#discussion_r3155544808
This commit is contained in:
committed by
GitHub
parent
6ea9c61da0
commit
a24dc19d49
@@ -213,12 +213,20 @@ requests to `/api/v2/aibridge/<NAME>/` to target a specific instance:
|
||||
|
||||
**Supported keys per provider:**
|
||||
|
||||
| Key | Required | Description |
|
||||
|------------|----------|------------------------------------------------------|
|
||||
| `TYPE` | Yes | Provider type: `openai`, `anthropic`, or `copilot` |
|
||||
| `NAME` | No | Unique instance name for routing. Defaults to `TYPE` |
|
||||
| `KEY` | No | API key for upstream authentication (alias: `KEYS`) |
|
||||
| `BASE_URL` | No | Base URL of the upstream API |
|
||||
| Key | Required | Description |
|
||||
|------------|----------|-------------------------------------------------------|
|
||||
| `TYPE` | Yes | Provider type: `openai`, `anthropic`, or `copilot` |
|
||||
| `NAME` | No | Unique instance name for routing. Defaults to `TYPE` |
|
||||
| `KEY` | No | API key for upstream authentication (alias: `KEYS`) |
|
||||
| `BASE_URL` | No | Base URL of the upstream API |
|
||||
| `DUMP_DIR` | No | Directory for provider API request and response dumps |
|
||||
|
||||
> [!WARNING]
|
||||
> `DUMP_DIR` is not intended for regular use. Setting this option
|
||||
> results in a high number of writes. Dump files contain raw request and
|
||||
> response data, which may include proprietary or sensitive information
|
||||
> (prompts, completions, tool inputs). Enable only briefly for diagnostic
|
||||
> purposes and protect the target directory.
|
||||
|
||||
For `anthropic` providers using AWS Bedrock, the following keys are also
|
||||
available: `BEDROCK_BASE_URL`, `BEDROCK_REGION`,
|
||||
|
||||
Reference in New Issue
Block a user