mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08: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:
Generated
+1
@@ -210,6 +210,7 @@ curl -X GET http://coder-server:8080/api/v2/deployment/config \
|
||||
"bedrock_model": "string",
|
||||
"bedrock_region": "string",
|
||||
"bedrock_small_fast_model": "string",
|
||||
"dump_dir": "string",
|
||||
"name": "string",
|
||||
"type": "string"
|
||||
}
|
||||
|
||||
Generated
+6
@@ -468,6 +468,7 @@
|
||||
"bedrock_model": "string",
|
||||
"bedrock_region": "string",
|
||||
"bedrock_small_fast_model": "string",
|
||||
"dump_dir": "string",
|
||||
"name": "string",
|
||||
"type": "string"
|
||||
}
|
||||
@@ -760,6 +761,7 @@
|
||||
"bedrock_model": "string",
|
||||
"bedrock_region": "string",
|
||||
"bedrock_small_fast_model": "string",
|
||||
"dump_dir": "string",
|
||||
"name": "string",
|
||||
"type": "string"
|
||||
}
|
||||
@@ -773,6 +775,7 @@
|
||||
| `bedrock_model` | string | false | | |
|
||||
| `bedrock_region` | string | false | | |
|
||||
| `bedrock_small_fast_model` | string | false | | |
|
||||
| `dump_dir` | string | false | | Dump dir is the directory path for dumping API requests and responses. |
|
||||
| `name` | string | false | | Name is the unique instance identifier used for routing. Defaults to Type if not provided. |
|
||||
| `type` | string | false | | Type is the provider type: "openai", "anthropic", or "copilot". |
|
||||
|
||||
@@ -1287,6 +1290,7 @@
|
||||
"bedrock_model": "string",
|
||||
"bedrock_region": "string",
|
||||
"bedrock_small_fast_model": "string",
|
||||
"dump_dir": "string",
|
||||
"name": "string",
|
||||
"type": "string"
|
||||
}
|
||||
@@ -3326,6 +3330,7 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|
||||
"bedrock_model": "string",
|
||||
"bedrock_region": "string",
|
||||
"bedrock_small_fast_model": "string",
|
||||
"dump_dir": "string",
|
||||
"name": "string",
|
||||
"type": "string"
|
||||
}
|
||||
@@ -3916,6 +3921,7 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
|
||||
"bedrock_model": "string",
|
||||
"bedrock_region": "string",
|
||||
"bedrock_small_fast_model": "string",
|
||||
"dump_dir": "string",
|
||||
"name": "string",
|
||||
"type": "string"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user