Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: remove aibridge experiment#20517

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
dannykopping wants to merge2 commits intomainfromdk/unexperimental
Closed
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletionscli/testdata/coder_server_--help.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -80,6 +80,41 @@ OPTIONS:
Periodically check for new releases of Coder and inform the owner. The
check is performed once per day.

AIBRIDGE OPTIONS:
--aibridge-anthropic-base-url string, $CODER_AIBRIDGE_ANTHROPIC_BASE_URL (default: https://api.anthropic.com/)
The base URL of the Anthropic API.

--aibridge-anthropic-key string, $CODER_AIBRIDGE_ANTHROPIC_KEY
The key to authenticate against the Anthropic API.

--aibridge-bedrock-access-key string, $CODER_AIBRIDGE_BEDROCK_ACCESS_KEY
The access key to authenticate against the AWS Bedrock API.

--aibridge-bedrock-access-key-secret string, $CODER_AIBRIDGE_BEDROCK_ACCESS_KEY_SECRET
The access key secret to use with the access key to authenticate
against the AWS Bedrock API.

--aibridge-bedrock-model string, $CODER_AIBRIDGE_BEDROCK_MODEL (default: global.anthropic.claude-sonnet-4-5-20250929-v1:0)
The model to use when making requests to the AWS Bedrock API.

--aibridge-bedrock-region string, $CODER_AIBRIDGE_BEDROCK_REGION
The AWS Bedrock API region.

--aibridge-bedrock-small-fastmodel string, $CODER_AIBRIDGE_BEDROCK_SMALL_FAST_MODEL (default: global.anthropic.claude-haiku-4-5-20251001-v1:0)
The small fast model to use when making requests to the AWS Bedrock
API. Claude Code uses Haiku-class models to perform background tasks.
See
https://docs.claude.com/en/docs/claude-code/settings#environment-variables.

--aibridge-enabled bool, $CODER_AIBRIDGE_ENABLED (default: false)
Whether to start an in-memory aibridged instance.

--aibridge-openai-base-url string, $CODER_AIBRIDGE_OPENAI_BASE_URL (default: https://api.openai.com/v1/)
The base URL of the OpenAI API.

--aibridge-openai-key string, $CODER_AIBRIDGE_OPENAI_KEY
The key to authenticate against the OpenAI API.

CLIENT OPTIONS:
These options change the behavior of how clients interact with the Coder.
Clients include the Coder CLI, Coder Desktop, IDE extensions, and the web UI.
Expand Down
3 changes: 1 addition & 2 deletionscli/testdata/server-config.yaml.golden
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -714,8 +714,7 @@ workspace_prebuilds:
# (default: 3, type: int)
failure_hard_limit: 3
aibridge:
# Whether to start an in-memory aibridged instance ("aibridge" experiment must be
# enabled, too).
# Whether to start an in-memory aibridged instance.
# (default: false, type: bool)
enabled: false
# The base URL of the OpenAI API.
Expand Down
7 changes: 2 additions & 5 deletionscoderd/apidoc/docs.go
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

7 changes: 2 additions & 5 deletionscoderd/apidoc/swagger.json
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

16 changes: 1 addition & 15 deletionscodersdk/deployment.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3241,14 +3241,13 @@ Write out the current server config as YAML to stdout.`,
// AIBridge Options
{
Name:"AIBridge Enabled",
Description:fmt.Sprintf("Whether to start an in-memory aibridged instance (%q experiment must be enabled, too).",ExperimentAIBridge),
Description:"Whether to start an in-memory aibridged instance.",
Flag:"aibridge-enabled",
Env:"CODER_AIBRIDGE_ENABLED",
Value:&c.AI.BridgeConfig.Enabled,
Default:"false",
Group:&deploymentGroupAIBridge,
YAML:"enabled",
Hidden:true,
},
{
Name:"AIBridge OpenAI Base URL",
Expand All@@ -3259,7 +3258,6 @@ Write out the current server config as YAML to stdout.`,
Default:"https://api.openai.com/v1/",
Group:&deploymentGroupAIBridge,
YAML:"openai_base_url",
Hidden:true,
},
{
Name:"AIBridge OpenAI Key",
Expand All@@ -3270,7 +3268,6 @@ Write out the current server config as YAML to stdout.`,
Default:"",
Group:&deploymentGroupAIBridge,
YAML:"openai_key",
Hidden:true,
},
{
Name:"AIBridge Anthropic Base URL",
Expand All@@ -3281,7 +3278,6 @@ Write out the current server config as YAML to stdout.`,
Default:"https://api.anthropic.com/",
Group:&deploymentGroupAIBridge,
YAML:"anthropic_base_url",
Hidden:true,
},
{
Name:"AIBridge Anthropic Key",
Expand All@@ -3292,7 +3288,6 @@ Write out the current server config as YAML to stdout.`,
Default:"",
Group:&deploymentGroupAIBridge,
YAML:"anthropic_key",
Hidden:true,
},
{
Name:"AIBridge Bedrock Region",
Expand All@@ -3303,7 +3298,6 @@ Write out the current server config as YAML to stdout.`,
Default:"",
Group:&deploymentGroupAIBridge,
YAML:"bedrock_region",
Hidden:true,
},
{
Name:"AIBridge Bedrock Access Key",
Expand All@@ -3314,7 +3308,6 @@ Write out the current server config as YAML to stdout.`,
Default:"",
Group:&deploymentGroupAIBridge,
YAML:"bedrock_access_key",
Hidden:true,
},
{
Name:"AIBridge Bedrock Access Key Secret",
Expand All@@ -3325,7 +3318,6 @@ Write out the current server config as YAML to stdout.`,
Default:"",
Group:&deploymentGroupAIBridge,
YAML:"bedrock_access_key_secret",
Hidden:true,
},
{
Name:"AIBridge Bedrock Model",
Expand All@@ -3336,7 +3328,6 @@ Write out the current server config as YAML to stdout.`,
Default:"global.anthropic.claude-sonnet-4-5-20250929-v1:0",// See https://docs.claude.com/en/api/claude-on-amazon-bedrock#accessing-bedrock.
Group:&deploymentGroupAIBridge,
YAML:"bedrock_model",
Hidden:true,
},
{
Name:"AIBridge Bedrock Small Fast Model",
Expand All@@ -3347,7 +3338,6 @@ Write out the current server config as YAML to stdout.`,
Default:"global.anthropic.claude-haiku-4-5-20251001-v1:0",// See https://docs.claude.com/en/api/claude-on-amazon-bedrock#accessing-bedrock.
Group:&deploymentGroupAIBridge,
YAML:"bedrock_small_fast_model",
Hidden:true,
},
{
Name:"Enable Authorization Recordings",
Expand DownExpand Up@@ -3645,7 +3635,6 @@ const (
ExperimentOAuth2Experiment="oauth2"// Enables OAuth2 provider functionality.
ExperimentMCPServerHTTPExperiment="mcp-server-http"// Enables the MCP HTTP server functionality.
ExperimentWorkspaceSharingExperiment="workspace-sharing"// Enables updating workspace ACLs for sharing with users and groups.
ExperimentAIBridgeExperiment="aibridge"// Enables AI Bridge functionality.
)

func (eExperiment)DisplayName()string {
Expand All@@ -3666,8 +3655,6 @@ func (e Experiment) DisplayName() string {
return"MCP HTTP Server Functionality"
caseExperimentWorkspaceSharing:
return"Workspace Sharing"
caseExperimentAIBridge:
return"AI Bridge"
default:
// Split on hyphen and convert to title case
// e.g. "web-push" -> "Web Push", "mcp-server-http" -> "Mcp Server Http"
Expand All@@ -3686,7 +3673,6 @@ var ExperimentsKnown = Experiments{
ExperimentOAuth2,
ExperimentMCPServerHTTP,
ExperimentWorkspaceSharing,
ExperimentAIBridge,
}

// ExperimentsSafe should include all experiments that are safe for
Expand Down
14 changes: 4 additions & 10 deletionsdocs/ai-coder/ai-bridge.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
# AI Bridge

> [!NOTE]
> AI Bridge is currently an _experimental_ feature.

![AI bridge diagram](../images/aibridge/aibridge_diagram.png)

Bridge is a smart proxy for AI. It acts as a man-in-the-middle between your users' coding agents / IDEs
Expand DownExpand Up@@ -45,17 +42,14 @@ Bridge runs inside the Coder control plane, requiring no separate compute to dep

### Activation

To enable this feature, activate the `aibridge` experiment using an environment variable or a CLI flag.
Additionally, you will need to enable Bridge explicitly:
You will need to enable Bridge explicitly:

```sh
CODER_EXPERIMENTS="aibridge"CODER_AIBRIDGE_ENABLED=true coder server
CODER_AIBRIDGE_ENABLED=true coder server
# or
coder server --experiments=aibridge --aibridge-enabled=true
coder server --aibridge-enabled=true
```

_If you have other experiments enabled, separate them by commas._

### Providers

Bridge currently supports OpenAI and Anthropic APIs.
Expand DownExpand Up@@ -133,7 +127,7 @@ All of these records are associated to an "interception" record, which maps 1:1

These logs can be used to determine usage patterns, track costs, and evaluate tooling adoption.

This data is currently accessible through the API and CLI (experimental), which we advise administrators export to their observability platform of choice. We've configured a Grafana dashboard to display Claude Code usage internally which can be imported as a starting point for your tooling adoption metrics.
This data is currently accessible through the API and CLI, which we advise administrators export to their observability platform of choice. We've configured a Grafana dashboard to display Claude Code usage internally which can be imported as a starting point for your tooling adoption metrics.

![User Leaderboard](../images/aibridge/grafana_user_leaderboard.png)

Expand Down
1 change: 0 additions & 1 deletiondocs/reference/api/schemas.md
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

105 changes: 105 additions & 0 deletionsdocs/reference/cli/server.md
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

3 changes: 0 additions & 3 deletionsenterprise/cli/exp_aibridge_test.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -27,7 +27,6 @@ func TestAIBridgeListInterceptions(t *testing.T) {
t.Parallel()

dv:=coderdtest.DeploymentValues(t)
dv.Experiments= []string{string(codersdk.ExperimentAIBridge)}
client,db,owner:=coderdenttest.NewWithDatabase(t,&coderdenttest.Options{
Options:&coderdtest.Options{
DeploymentValues:dv,
Expand DownExpand Up@@ -78,7 +77,6 @@ func TestAIBridgeListInterceptions(t *testing.T) {
t.Parallel()

dv:=coderdtest.DeploymentValues(t)
dv.Experiments= []string{string(codersdk.ExperimentAIBridge)}
client,db,owner:=coderdenttest.NewWithDatabase(t,&coderdenttest.Options{
Options:&coderdtest.Options{
DeploymentValues:dv,
Expand DownExpand Up@@ -164,7 +162,6 @@ func TestAIBridgeListInterceptions(t *testing.T) {
t.Parallel()

dv:=coderdtest.DeploymentValues(t)
dv.Experiments= []string{string(codersdk.ExperimentAIBridge)}
client,db,owner:=coderdenttest.NewWithDatabase(t,&coderdenttest.Options{
Options:&coderdtest.Options{
DeploymentValues:dv,
Expand Down
Loading
Loading

[8]ページ先頭

©2009-2025 Movatter.jp