Skip to content

Commit fbf0d64

Browse files
Identify the effective proxy route without exposing the secret
1 parent 4a640d9 commit fbf0d64

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎.github/workflows/maintenance-prs.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ jobs:
4949
return;
5050
}
5151
core.info(`Using managed Anthropic route: ${baseUrl === 'https://proxy.shopify.ai/apis/anthropic'}`);
52+
const configuredUrl = new URL(baseUrl);
53+
const knownRoutes = new Map([
54+
['/apis/anthropic', 'managed Anthropic base'],
55+
['/apis/anthropic/v1', 'managed Anthropic base with v1 already appended'],
56+
['/vendors/anthropic-claude-code', 'Claude Code vendor base'],
57+
['/vendors/anthropic', 'Anthropic vendor base'],
58+
['/', 'proxy root'],
59+
]);
60+
core.info(`Configured route category: ${knownRoutes.get(configuredUrl.pathname.replace(/\/$/, '') || '/') ?? 'other route'}`);
61+
core.info(`URL has query or fragment: ${Boolean(configuredUrl.search || configuredUrl.hash)}`);
5262
const headers = {
5363
'x-api-key': apiKey,
5464
'anthropic-version': '2023-06-01',

0 commit comments

Comments
 (0)