mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: add missing aibridgeproxyd renames
This commit is contained in:
+5
-5
@@ -141,17 +141,17 @@ AI BRIDGE OPTIONS:
|
||||
|
||||
AI BRIDGE PROXY OPTIONS:
|
||||
--aibridge-proxy-cert-file string, $CODER_AIBRIDGE_PROXY_CERT_FILE
|
||||
Path to the CA certificate file for MITM.
|
||||
Path to the CA certificate file for AI Bridge Proxy.
|
||||
|
||||
--aibridge-proxy-enabled bool, $CODER_AIBRIDGE_PROXY_ENABLED (default: false)
|
||||
Enable the AI MITM proxy for intercepting and decrypting AI provider
|
||||
requests.
|
||||
Enable the AI Bridge MITM Proxy for intercepting and decrypting AI
|
||||
provider requests.
|
||||
|
||||
--aibridge-proxy-key-file string, $CODER_AIBRIDGE_PROXY_KEY_FILE
|
||||
Path to the CA private key file for MITM.
|
||||
Path to the CA private key file for AI Bridge Proxy.
|
||||
|
||||
--aibridge-proxy-listen-addr string, $CODER_AIBRIDGE_PROXY_LISTEN_ADDR (default: :8888)
|
||||
The address the AI proxy will listen on.
|
||||
The address the AI Bridge Proxy will listen on.
|
||||
|
||||
CLIENT OPTIONS:
|
||||
These options change the behavior of how clients interact with the Coder.
|
||||
|
||||
+5
-4
@@ -766,16 +766,17 @@ aibridge:
|
||||
# (default: 0, type: int)
|
||||
rateLimit: 0
|
||||
aibridgeproxy:
|
||||
# Enable the AI MITM proxy for intercepting and decrypting AI provider requests.
|
||||
# Enable the AI Bridge MITM Proxy for intercepting and decrypting AI provider
|
||||
# requests.
|
||||
# (default: false, type: bool)
|
||||
enabled: false
|
||||
# The address the AI proxy will listen on.
|
||||
# The address the AI Bridge Proxy will listen on.
|
||||
# (default: :8888, type: string)
|
||||
listen_addr: :8888
|
||||
# Path to the CA certificate file for MITM.
|
||||
# Path to the CA certificate file for AI Bridge Proxy.
|
||||
# (default: <unset>, type: string)
|
||||
cert_file: ""
|
||||
# Path to the CA private key file for MITM.
|
||||
# Path to the CA private key file for AI Bridge Proxy.
|
||||
# (default: <unset>, type: string)
|
||||
key_file: ""
|
||||
# Configure data retention policies for various database tables. Retention
|
||||
|
||||
@@ -3451,7 +3451,7 @@ Write out the current server config as YAML to stdout.`,
|
||||
// AI Bridge Proxy Options
|
||||
{
|
||||
Name: "AI Bridge Proxy Enabled",
|
||||
Description: "Enable the AI MITM proxy for intercepting and decrypting AI provider requests.",
|
||||
Description: "Enable the AI Bridge MITM Proxy for intercepting and decrypting AI provider requests.",
|
||||
Flag: "aibridge-proxy-enabled",
|
||||
Env: "CODER_AIBRIDGE_PROXY_ENABLED",
|
||||
Value: &c.AI.BridgeProxyConfig.Enabled,
|
||||
@@ -3461,7 +3461,7 @@ Write out the current server config as YAML to stdout.`,
|
||||
},
|
||||
{
|
||||
Name: "AI Bridge Proxy Listen Address",
|
||||
Description: "The address the AI proxy will listen on.",
|
||||
Description: "The address the AI Bridge Proxy will listen on.",
|
||||
Flag: "aibridge-proxy-listen-addr",
|
||||
Env: "CODER_AIBRIDGE_PROXY_LISTEN_ADDR",
|
||||
Value: &c.AI.BridgeProxyConfig.ListenAddr,
|
||||
@@ -3471,7 +3471,7 @@ Write out the current server config as YAML to stdout.`,
|
||||
},
|
||||
{
|
||||
Name: "AI Bridge Proxy Certificate File",
|
||||
Description: "Path to the CA certificate file for MITM.",
|
||||
Description: "Path to the CA certificate file for AI Bridge Proxy.",
|
||||
Flag: "aibridge-proxy-cert-file",
|
||||
Env: "CODER_AIBRIDGE_PROXY_CERT_FILE",
|
||||
Value: &c.AI.BridgeProxyConfig.CertFile,
|
||||
@@ -3481,7 +3481,7 @@ Write out the current server config as YAML to stdout.`,
|
||||
},
|
||||
{
|
||||
Name: "AI Bridge Proxy Key File",
|
||||
Description: "Path to the CA private key file for MITM.",
|
||||
Description: "Path to the CA private key file for AI Bridge Proxy.",
|
||||
Flag: "aibridge-proxy-key-file",
|
||||
Env: "CODER_AIBRIDGE_PROXY_KEY_FILE",
|
||||
Value: &c.AI.BridgeProxyConfig.KeyFile,
|
||||
|
||||
Generated
+4
-4
@@ -1823,7 +1823,7 @@ Maximum number of AI Bridge requests per second per replica. Set to 0 to disable
|
||||
| YAML | <code>aibridgeproxy.enabled</code> |
|
||||
| Default | <code>false</code> |
|
||||
|
||||
Enable the AI MITM proxy for intercepting and decrypting AI provider requests.
|
||||
Enable the AI Bridge MITM Proxy for intercepting and decrypting AI provider requests.
|
||||
|
||||
### --aibridge-proxy-listen-addr
|
||||
|
||||
@@ -1834,7 +1834,7 @@ Enable the AI MITM proxy for intercepting and decrypting AI provider requests.
|
||||
| YAML | <code>aibridgeproxy.listen_addr</code> |
|
||||
| Default | <code>:8888</code> |
|
||||
|
||||
The address the AI proxy will listen on.
|
||||
The address the AI Bridge Proxy will listen on.
|
||||
|
||||
### --aibridge-proxy-cert-file
|
||||
|
||||
@@ -1844,7 +1844,7 @@ The address the AI proxy will listen on.
|
||||
| Environment | <code>$CODER_AIBRIDGE_PROXY_CERT_FILE</code> |
|
||||
| YAML | <code>aibridgeproxy.cert_file</code> |
|
||||
|
||||
Path to the CA certificate file for MITM.
|
||||
Path to the CA certificate file for AI Bridge Proxy.
|
||||
|
||||
### --aibridge-proxy-key-file
|
||||
|
||||
@@ -1854,7 +1854,7 @@ Path to the CA certificate file for MITM.
|
||||
| Environment | <code>$CODER_AIBRIDGE_PROXY_KEY_FILE</code> |
|
||||
| YAML | <code>aibridgeproxy.key_file</code> |
|
||||
|
||||
Path to the CA private key file for MITM.
|
||||
Path to the CA private key file for AI Bridge Proxy.
|
||||
|
||||
### --audit-logs-retention
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ type Server struct {
|
||||
httpServer *http.Server
|
||||
}
|
||||
|
||||
// Options configures the AI proxy server.
|
||||
// Options configures the AI Bridge Proxy server.
|
||||
type Options struct {
|
||||
// ListenAddr is the address the proxy server will listen on.
|
||||
ListenAddr string
|
||||
@@ -36,7 +36,7 @@ type Options struct {
|
||||
}
|
||||
|
||||
func New(ctx context.Context, logger slog.Logger, opts Options) (*Server, error) {
|
||||
logger.Info(ctx, "initializing AI proxy server")
|
||||
logger.Info(ctx, "initializing AI Bridge Proxy server")
|
||||
|
||||
if opts.ListenAddr == "" {
|
||||
return nil, xerrors.New("listen address is required")
|
||||
@@ -72,7 +72,7 @@ func New(ctx context.Context, logger slog.Logger, opts Options) (*Server, error)
|
||||
}
|
||||
|
||||
go func() {
|
||||
logger.Info(ctx, "starting AI proxy", slog.F("addr", opts.ListenAddr))
|
||||
logger.Info(ctx, "starting AI Bridge Proxy", slog.F("addr", opts.ListenAddr))
|
||||
if err := srv.httpServer.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) {
|
||||
logger.Error(ctx, "aibridgeproxyd server error", slog.Error(err))
|
||||
}
|
||||
|
||||
@@ -165,14 +165,14 @@ func (r *RootCmd) Server(_ func()) *serpent.Command {
|
||||
closers.Add(aibridgeDaemon)
|
||||
}
|
||||
|
||||
// In-memory AI proxy daemon
|
||||
// In-memory AI Bridge Proxy daemon
|
||||
if options.DeploymentValues.AI.BridgeProxyConfig.Enabled.Value() {
|
||||
aiProxyServer, err := newAIBridgeProxyDaemon(api)
|
||||
aiBridgeProxyServer, err := newAIBridgeProxyDaemon(api)
|
||||
if err != nil {
|
||||
_ = closers.Close()
|
||||
return nil, nil, xerrors.Errorf("create aibridgeproxyd: %w", err)
|
||||
}
|
||||
closers.Add(aiProxyServer)
|
||||
closers.Add(aiBridgeProxyServer)
|
||||
}
|
||||
|
||||
return api.AGPL, closers, nil
|
||||
|
||||
+5
-5
@@ -142,17 +142,17 @@ AI BRIDGE OPTIONS:
|
||||
|
||||
AI BRIDGE PROXY OPTIONS:
|
||||
--aibridge-proxy-cert-file string, $CODER_AIBRIDGE_PROXY_CERT_FILE
|
||||
Path to the CA certificate file for MITM.
|
||||
Path to the CA certificate file for AI Bridge Proxy.
|
||||
|
||||
--aibridge-proxy-enabled bool, $CODER_AIBRIDGE_PROXY_ENABLED (default: false)
|
||||
Enable the AI MITM proxy for intercepting and decrypting AI provider
|
||||
requests.
|
||||
Enable the AI Bridge MITM Proxy for intercepting and decrypting AI
|
||||
provider requests.
|
||||
|
||||
--aibridge-proxy-key-file string, $CODER_AIBRIDGE_PROXY_KEY_FILE
|
||||
Path to the CA private key file for MITM.
|
||||
Path to the CA private key file for AI Bridge Proxy.
|
||||
|
||||
--aibridge-proxy-listen-addr string, $CODER_AIBRIDGE_PROXY_LISTEN_ADDR (default: :8888)
|
||||
The address the AI proxy will listen on.
|
||||
The address the AI Bridge Proxy will listen on.
|
||||
|
||||
CLIENT OPTIONS:
|
||||
These options change the behavior of how clients interact with the Coder.
|
||||
|
||||
Reference in New Issue
Block a user