chore: align minimax auth header
This commit is contained in:
@@ -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),
|
||||||
|
|||||||
Reference in New Issue
Block a user