fix(ci): suppress bearer auth for Azure API keys

This commit is contained in:
Yichen Jiang
2026-07-19 14:10:47 +08:00
parent 39dea6107e
commit fc478d675c
2 changed files with 5 additions and 2 deletions
@@ -23,7 +23,9 @@ const providerCases: ProviderCase[] = [
provider: 'openai',
api: 'openai-responses',
model: process.env.DSH_PI_AI_OPENAI_MODEL ?? 'gpt-5.5',
...azureOpenAIKey ? { apiKey: azureOpenAIKey, headers: { 'api-key': azureOpenAIKey } } : {},
...azureOpenAIKey
? { apiKey: azureOpenAIKey, headers: { 'api-key': azureOpenAIKey, Authorization: '' } }
: {},
...openAIBaseURL ? { baseURL: openAIBaseURL } : {},
},
{