chore: align minimax auth header

This commit is contained in:
renato97
2025-12-01 03:37:00 +00:00
parent 149c260ec1
commit 7c4f36d779

View File

@@ -173,7 +173,7 @@ async function callAnthropic(systemText, userText, maxTokens = 800) {
headers: { headers: {
'content-type': 'application/json', 'content-type': 'application/json',
'x-api-key': cfg.token, 'x-api-key': cfg.token,
Authorization: `Bearer ${cfg.token}`, Authorization: cfg.token,
'anthropic-version': '2023-06-01' 'anthropic-version': '2023-06-01'
}, },
body: JSON.stringify(payload), body: JSON.stringify(payload),