Revert "fix: carry provider capability in dedicated header"

This reverts commit 3087132083.
This commit is contained in:
2026-07-11 15:06:47 +08:00
parent 3087132083
commit 2ee84d9543
5 changed files with 7 additions and 23 deletions
+1 -2
View File
@@ -54,7 +54,6 @@ describe("run-scoped provider proxy", () => {
ANTHROPIC_BASE_URL: expect.stringMatching(/^http:\/\/127\.0\.0\.1:\d+$/),
ANTHROPIC_AUTH_TOKEN: expect.any(String),
ANTHROPIC_API_KEY: expect.any(String),
ANTHROPIC_CUSTOM_HEADERS: expect.stringMatching(/^X-CPH-Run-Capability: /),
});
expect(lease.sdkEnv.ANTHROPIC_AUTH_TOKEN).toBe(lease.sdkEnv.ANTHROPIC_API_KEY);
@@ -109,7 +108,7 @@ describe("run-scoped provider proxy", () => {
expect(diagnostics).toEqual([{
code: "provider_proxy_unauthorized",
category: "authorization",
authShape: { bearerLength: 0, apiKeyLength: 0, customCapabilityLength: 0, expectedLength: 43 },
authShape: { bearerLength: 0, apiKeyLength: 0, expectedLength: 43 },
}]);
});