Fix Claude Desktop Cowork egress profile (#3172)

This commit is contained in:
Sphaela
2026-05-27 11:49:08 +09:00
committed by GitHub
parent 5fd3ec0d6a
commit 864593bb09
+3
View File
@@ -946,6 +946,7 @@ fn build_gateway_profile(
model_specs: Option<&[InferenceModelSpec]>,
) -> Value {
let mut profile = json!({
"coworkEgressAllowedHosts": ["*"],
"disableDeploymentModeChooser": true,
"inferenceGatewayApiKey": api_key,
"inferenceGatewayAuthScheme": "bearer",
@@ -1404,6 +1405,7 @@ mod tests {
assert_eq!(profile["inferenceGatewayApiKey"], json!("test-token"));
assert_eq!(profile["inferenceGatewayAuthScheme"], json!("bearer"));
assert_eq!(profile["disableDeploymentModeChooser"], json!(true));
assert_eq!(profile["coworkEgressAllowedHosts"], json!(["*"]));
assert!(profile.get("inferenceModels").is_none());
assert_eq!(meta["appliedId"], json!(PROFILE_ID));
assert!(meta["entries"]
@@ -1464,6 +1466,7 @@ mod tests {
json!("http://127.0.0.1:15721/claude-desktop")
);
assert_eq!(profile["inferenceGatewayAuthScheme"], json!("bearer"));
assert_eq!(profile["coworkEgressAllowedHosts"], json!(["*"]));
assert_ne!(profile["inferenceGatewayApiKey"], json!("test-token"));
assert!(profile["inferenceGatewayApiKey"]
.as_str()