refactor(ai): remove chat model catalog server options

This commit is contained in:
Kyle Carberry
2026-02-24 13:40:02 -05:00
parent 5c8ea76d33
commit abdfdfc683
10 changed files with 0 additions and 144 deletions
-12
View File
@@ -177,18 +177,6 @@ AI BRIDGE OPTIONS:
--agent-local-workspace bool, $CODER_AGENT_LOCAL_WORKSPACE (default: false)
Enable admin-only local workspace mode for agent chats.
--chat-anthropic-models-url string, $CODER_CHAT_ANTHROPIC_MODELS_URL
Override URL used to list Anthropic models for the chat model catalog.
--chat-models-allowlist string, $CODER_CHAT_MODELS_ALLOWLIST
Comma-separated allowlist of models for the chat model catalog.
--chat-models-denylist string, $CODER_CHAT_MODELS_DENYLIST
Comma-separated denylist of models for the chat model catalog.
--chat-openai-models-url string, $CODER_CHAT_OPENAI_MODELS_URL
Override URL used to list OpenAI models for the chat model catalog.
--chat-system-prompt string, $CODER_CHAT_SYSTEM_PROMPT (default: You are the Coder agent — an interactive chat tool that helps users with software-engineering tasks inside of the Coder product.
Use the instructions below and the tools available to you to assist User.
-12
View File
@@ -926,21 +926,9 @@ aibridge:
# The base URL of the OpenAI API.
# (default: https://api.openai.com/v1/, type: string)
openai_base_url: https://api.openai.com/v1/
# Override URL used to list OpenAI models for the chat model catalog.
# (default: <unset>, type: string)
chat_openai_models_url: ""
# The base URL of the Anthropic API.
# (default: https://api.anthropic.com/, type: string)
anthropic_base_url: https://api.anthropic.com/
# Override URL used to list Anthropic models for the chat model catalog.
# (default: <unset>, type: string)
chat_anthropic_models_url: ""
# Comma-separated allowlist of models for the chat model catalog.
# (default: <unset>, type: string)
chat_models_allowlist: ""
# Comma-separated denylist of models for the chat model catalog.
# (default: <unset>, type: string)
chat_models_denylist: ""
# The base URL to use for the AWS Bedrock API. Use this setting to specify an
# exact URL to use. Takes precedence over CODER_AIBRIDGE_BEDROCK_REGION.
# (default: <unset>, type: string)
-6
View File
@@ -12849,12 +12849,6 @@ const docTemplate = `{
"max_concurrency": {
"type": "integer"
},
"models_allowlist": {
"type": "string"
},
"models_denylist": {
"type": "string"
},
"openai": {
"$ref": "#/definitions/codersdk.AIBridgeOpenAIConfig"
},
-6
View File
@@ -11413,12 +11413,6 @@
"max_concurrency": {
"type": "integer"
},
"models_allowlist": {
"type": "string"
},
"models_denylist": {
"type": "string"
},
"openai": {
"$ref": "#/definitions/codersdk.AIBridgeOpenAIConfig"
},
-42
View File
@@ -3715,16 +3715,6 @@ Don't assume what needs to be done - collaborate to define the scope together.
Group: &deploymentGroupAIBridge,
YAML: "openai_base_url",
},
{
Name: "Chat OpenAI Models URL",
Description: "Override URL used to list OpenAI models for the chat model catalog.",
Flag: "chat-openai-models-url",
Env: "CODER_CHAT_OPENAI_MODELS_URL",
Value: &c.AI.BridgeConfig.OpenAI.ModelsURL,
Default: "",
Group: &deploymentGroupAIBridge,
YAML: "chat_openai_models_url",
},
{
Name: "AI Bridge OpenAI Key",
Description: "The key to authenticate against the OpenAI API.",
@@ -3745,16 +3735,6 @@ Don't assume what needs to be done - collaborate to define the scope together.
Group: &deploymentGroupAIBridge,
YAML: "anthropic_base_url",
},
{
Name: "Chat Anthropic Models URL",
Description: "Override URL used to list Anthropic models for the chat model catalog.",
Flag: "chat-anthropic-models-url",
Env: "CODER_CHAT_ANTHROPIC_MODELS_URL",
Value: &c.AI.BridgeConfig.Anthropic.ModelsURL,
Default: "",
Group: &deploymentGroupAIBridge,
YAML: "chat_anthropic_models_url",
},
{
Name: "AI Bridge Anthropic Key",
Description: "The key to authenticate against the Anthropic API.",
@@ -3765,26 +3745,6 @@ Don't assume what needs to be done - collaborate to define the scope together.
Group: &deploymentGroupAIBridge,
Annotations: serpent.Annotations{}.Mark(annotationSecretKey, "true"),
},
{
Name: "Chat Models Allowlist",
Description: "Comma-separated allowlist of models for the chat model catalog.",
Flag: "chat-models-allowlist",
Env: "CODER_CHAT_MODELS_ALLOWLIST",
Value: &c.AI.BridgeConfig.ModelsAllowlist,
Default: "",
Group: &deploymentGroupAIBridge,
YAML: "chat_models_allowlist",
},
{
Name: "Chat Models Denylist",
Description: "Comma-separated denylist of models for the chat model catalog.",
Flag: "chat-models-denylist",
Env: "CODER_CHAT_MODELS_DENYLIST",
Value: &c.AI.BridgeConfig.ModelsDenylist,
Default: "",
Group: &deploymentGroupAIBridge,
YAML: "chat_models_denylist",
},
{
Name: "AI Bridge Bedrock Base URL",
Description: "The base URL to use for the AWS Bedrock API. Use this setting to specify an exact URL to use. Takes precedence " +
@@ -4117,8 +4077,6 @@ type AIBridgeConfig struct {
Enabled serpent.Bool `json:"enabled" typescript:",notnull"`
OpenAI AIBridgeOpenAIConfig `json:"openai" typescript:",notnull"`
Anthropic AIBridgeAnthropicConfig `json:"anthropic" typescript:",notnull"`
ModelsAllowlist serpent.String `json:"models_allowlist" typescript:",notnull"`
ModelsDenylist serpent.String `json:"models_denylist" typescript:",notnull"`
Bedrock AIBridgeBedrockConfig `json:"bedrock" typescript:",notnull"`
InjectCoderMCPTools serpent.Bool `json:"inject_coder_mcp_tools" typescript:",notnull"`
Retention serpent.Duration `json:"retention" typescript:",notnull"`
-2
View File
@@ -195,8 +195,6 @@ curl -X GET http://coder-server:8080/api/v2/deployment/config \
"enabled": true,
"inject_coder_mcp_tools": true,
"max_concurrency": 0,
"models_allowlist": "string",
"models_denylist": "string",
"openai": {
"base_url": "string",
"key": "string",
-10
View File
@@ -402,8 +402,6 @@
"enabled": true,
"inject_coder_mcp_tools": true,
"max_concurrency": 0,
"models_allowlist": "string",
"models_denylist": "string",
"openai": {
"base_url": "string",
"key": "string",
@@ -430,8 +428,6 @@
| `enabled` | boolean | false | | |
| `inject_coder_mcp_tools` | boolean | false | | |
| `max_concurrency` | integer | false | | |
| `models_allowlist` | string | false | | |
| `models_denylist` | string | false | | |
| `openai` | [codersdk.AIBridgeOpenAIConfig](#codersdkaibridgeopenaiconfig) | false | | |
| `rate_limit` | integer | false | | |
| `retention` | integer | false | | |
@@ -799,8 +795,6 @@
"enabled": true,
"inject_coder_mcp_tools": true,
"max_concurrency": 0,
"models_allowlist": "string",
"models_denylist": "string",
"openai": {
"base_url": "string",
"key": "string",
@@ -3474,8 +3468,6 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
"enabled": true,
"inject_coder_mcp_tools": true,
"max_concurrency": 0,
"models_allowlist": "string",
"models_denylist": "string",
"openai": {
"base_url": "string",
"key": "string",
@@ -4052,8 +4044,6 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
"enabled": true,
"inject_coder_mcp_tools": true,
"max_concurrency": 0,
"models_allowlist": "string",
"models_denylist": "string",
"openai": {
"base_url": "string",
"key": "string",
-40
View File
@@ -1826,16 +1826,6 @@ Whether to start an in-memory aibridged instance.
The base URL of the OpenAI API.
### --chat-openai-models-url
| | |
|-------------|----------------------------------------------|
| Type | <code>string</code> |
| Environment | <code>$CODER_CHAT_OPENAI_MODELS_URL</code> |
| YAML | <code>aibridge.chat_openai_models_url</code> |
Override URL used to list OpenAI models for the chat model catalog.
### --aibridge-openai-key
| | |
@@ -1856,16 +1846,6 @@ The key to authenticate against the OpenAI API.
The base URL of the Anthropic API.
### --chat-anthropic-models-url
| | |
|-------------|-------------------------------------------------|
| Type | <code>string</code> |
| Environment | <code>$CODER_CHAT_ANTHROPIC_MODELS_URL</code> |
| YAML | <code>aibridge.chat_anthropic_models_url</code> |
Override URL used to list Anthropic models for the chat model catalog.
### --aibridge-anthropic-key
| | |
@@ -1875,26 +1855,6 @@ Override URL used to list Anthropic models for the chat model catalog.
The key to authenticate against the Anthropic API.
### --chat-models-allowlist
| | |
|-------------|---------------------------------------------|
| Type | <code>string</code> |
| Environment | <code>$CODER_CHAT_MODELS_ALLOWLIST</code> |
| YAML | <code>aibridge.chat_models_allowlist</code> |
Comma-separated allowlist of models for the chat model catalog.
### --chat-models-denylist
| | |
|-------------|--------------------------------------------|
| Type | <code>string</code> |
| Environment | <code>$CODER_CHAT_MODELS_DENYLIST</code> |
| YAML | <code>aibridge.chat_models_denylist</code> |
Comma-separated denylist of models for the chat model catalog.
### --aibridge-bedrock-base-url
| | |
-12
View File
@@ -178,18 +178,6 @@ AI BRIDGE OPTIONS:
--agent-local-workspace bool, $CODER_AGENT_LOCAL_WORKSPACE (default: false)
Enable admin-only local workspace mode for agent chats.
--chat-anthropic-models-url string, $CODER_CHAT_ANTHROPIC_MODELS_URL
Override URL used to list Anthropic models for the chat model catalog.
--chat-models-allowlist string, $CODER_CHAT_MODELS_ALLOWLIST
Comma-separated allowlist of models for the chat model catalog.
--chat-models-denylist string, $CODER_CHAT_MODELS_DENYLIST
Comma-separated denylist of models for the chat model catalog.
--chat-openai-models-url string, $CODER_CHAT_OPENAI_MODELS_URL
Override URL used to list OpenAI models for the chat model catalog.
--chat-system-prompt string, $CODER_CHAT_SYSTEM_PROMPT (default: You are the Coder agent — an interactive chat tool that helps users with software-engineering tasks inside of the Coder product.
Use the instructions below and the tools available to you to assist User.
-2
View File
@@ -32,8 +32,6 @@ export interface AIBridgeConfig {
readonly enabled: boolean;
readonly openai: AIBridgeOpenAIConfig;
readonly anthropic: AIBridgeAnthropicConfig;
readonly models_allowlist: string;
readonly models_denylist: string;
readonly bedrock: AIBridgeBedrockConfig;
readonly inject_coder_mcp_tools: boolean;
readonly retention: number;