@ducci/jarvis 1.0.37 → 1.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/server/provider.js +2 -2
package/package.json
CHANGED
package/src/server/provider.js
CHANGED
|
@@ -119,8 +119,8 @@ function anthropicResponseToOpenAI(response) {
|
|
|
119
119
|
function createAnthropicClient(apiKey) {
|
|
120
120
|
const isOAuthToken = apiKey.startsWith('sk-ant-oat');
|
|
121
121
|
const anthropic = isOAuthToken
|
|
122
|
-
? new Anthropic({ authToken: apiKey, defaultHeaders: { 'anthropic-beta': 'oauth-2025-04-20
|
|
123
|
-
: new Anthropic({ apiKey
|
|
122
|
+
? new Anthropic({ authToken: apiKey, defaultHeaders: { 'anthropic-beta': 'oauth-2025-04-20' } })
|
|
123
|
+
: new Anthropic({ apiKey });
|
|
124
124
|
|
|
125
125
|
return {
|
|
126
126
|
chat: {
|