@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ducci/jarvis",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "A fully automated agent system that lives on a server.",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -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,extended-cache-ttl-2025-01-13' } })
123
- : new Anthropic({ apiKey, defaultHeaders: { 'anthropic-beta': 'extended-cache-ttl-2025-01-13' } });
122
+ ? new Anthropic({ authToken: apiKey, defaultHeaders: { 'anthropic-beta': 'oauth-2025-04-20' } })
123
+ : new Anthropic({ apiKey });
124
124
 
125
125
  return {
126
126
  chat: {