chore: add aibridge configs & experiment (#19793)

This commit is contained in:
Danny Kopping
2025-09-16 11:45:23 +02:00
committed by GitHub
parent 2695bb418a
commit 8487216548
7 changed files with 355 additions and 4 deletions
+52 -2
View File
@@ -11175,6 +11175,50 @@ const docTemplate = `{
}
}
},
"codersdk.AIBridgeAnthropicConfig": {
"type": "object",
"properties": {
"base_url": {
"type": "string"
},
"key": {
"type": "string"
}
}
},
"codersdk.AIBridgeConfig": {
"type": "object",
"properties": {
"anthropic": {
"$ref": "#/definitions/codersdk.AIBridgeAnthropicConfig"
},
"enabled": {
"type": "boolean"
},
"openai": {
"$ref": "#/definitions/codersdk.AIBridgeOpenAIConfig"
}
}
},
"codersdk.AIBridgeOpenAIConfig": {
"type": "object",
"properties": {
"base_url": {
"type": "string"
},
"key": {
"type": "string"
}
}
},
"codersdk.AIConfig": {
"type": "object",
"properties": {
"bridge": {
"$ref": "#/definitions/codersdk.AIBridgeConfig"
}
}
},
"codersdk.APIKey": {
"type": "object",
"required": [
@@ -12811,6 +12855,9 @@ const docTemplate = `{
"agent_stat_refresh_interval": {
"type": "integer"
},
"ai": {
"$ref": "#/definitions/codersdk.AIConfig"
},
"allow_workspace_renames": {
"type": "boolean"
},
@@ -13138,9 +13185,11 @@ const docTemplate = `{
"web-push",
"oauth2",
"mcp-server-http",
"workspace-sharing"
"workspace-sharing",
"aibridge"
],
"x-enum-comments": {
"ExperimentAIBridge": "Enables AI Bridge functionality.",
"ExperimentAutoFillParameters": "This should not be taken out of experiments until we have redesigned the feature.",
"ExperimentExample": "This isn't used for anything.",
"ExperimentMCPServerHTTP": "Enables the MCP HTTP server functionality.",
@@ -13158,7 +13207,8 @@ const docTemplate = `{
"ExperimentWebPush",
"ExperimentOAuth2",
"ExperimentMCPServerHTTP",
"ExperimentWorkspaceSharing"
"ExperimentWorkspaceSharing",
"ExperimentAIBridge"
]
},
"codersdk.ExternalAgentCredentials": {
+52 -2
View File
@@ -9909,6 +9909,50 @@
}
}
},
"codersdk.AIBridgeAnthropicConfig": {
"type": "object",
"properties": {
"base_url": {
"type": "string"
},
"key": {
"type": "string"
}
}
},
"codersdk.AIBridgeConfig": {
"type": "object",
"properties": {
"anthropic": {
"$ref": "#/definitions/codersdk.AIBridgeAnthropicConfig"
},
"enabled": {
"type": "boolean"
},
"openai": {
"$ref": "#/definitions/codersdk.AIBridgeOpenAIConfig"
}
}
},
"codersdk.AIBridgeOpenAIConfig": {
"type": "object",
"properties": {
"base_url": {
"type": "string"
},
"key": {
"type": "string"
}
}
},
"codersdk.AIConfig": {
"type": "object",
"properties": {
"bridge": {
"$ref": "#/definitions/codersdk.AIBridgeConfig"
}
}
},
"codersdk.APIKey": {
"type": "object",
"required": [
@@ -11454,6 +11498,9 @@
"agent_stat_refresh_interval": {
"type": "integer"
},
"ai": {
"$ref": "#/definitions/codersdk.AIConfig"
},
"allow_workspace_renames": {
"type": "boolean"
},
@@ -11774,9 +11821,11 @@
"web-push",
"oauth2",
"mcp-server-http",
"workspace-sharing"
"workspace-sharing",
"aibridge"
],
"x-enum-comments": {
"ExperimentAIBridge": "Enables AI Bridge functionality.",
"ExperimentAutoFillParameters": "This should not be taken out of experiments until we have redesigned the feature.",
"ExperimentExample": "This isn't used for anything.",
"ExperimentMCPServerHTTP": "Enables the MCP HTTP server functionality.",
@@ -11794,7 +11843,8 @@
"ExperimentWebPush",
"ExperimentOAuth2",
"ExperimentMCPServerHTTP",
"ExperimentWorkspaceSharing"
"ExperimentWorkspaceSharing",
"ExperimentAIBridge"
]
},
"codersdk.ExternalAgentCredentials": {