Leon4gr45 commited on
Commit
e9d75f5
·
verified ·
1 Parent(s): bb48cdb

Upload folder using huggingface_hub

Browse files
app/api/generate-ai-code-stream/route.ts CHANGED
@@ -1303,7 +1303,7 @@ It's better to have 3 complete files than 10 incomplete files.`
1303
  // Final error, send to user
1304
  await sendProgress({
1305
  type: 'error',
1306
- message: `Failed to initialize ${isGoogle ? 'Gemini' : isAnthropic ? 'Claude' : isOpenAI ? 'GPT-5' : isKimiGroq ? 'Kimi (Groq)' : 'Groq'} streaming: ${streamError.message}`
1307
  });
1308
 
1309
  // If this is a Google model error, provide helpful info
 
1303
  // Final error, send to user
1304
  await sendProgress({
1305
  type: 'error',
1306
+ message: `Failed to initialize ${isGoogle ? 'Gemini' : isAnthropic ? 'Claude' : isOpenAI ? 'GPT-5' : 'AI'} streaming: ${streamError.message}`
1307
  });
1308
 
1309
  // If this is a Google model error, provide helpful info
package.json CHANGED
@@ -13,12 +13,8 @@
13
  "test:all": "npm run test:integration && npm run test:api && npm run test:code"
14
  },
15
  "dependencies": {
16
- "@ai-sdk/anthropic": "^2.0.1",
17
- "@ai-sdk/google": "^2.0.4",
18
- "@ai-sdk/groq": "^2.0.0",
19
  "@ai-sdk/openai": "^2.0.4",
20
  "@ai-sdk/react": "^3.0.41",
21
- "@anthropic-ai/sdk": "^0.57.0",
22
  "@e2b/code-interpreter": "^2.0.0",
23
  "@mendable/firecrawl-js": "^4.3.3",
24
  "@radix-ui/react-accordion": "^1.2.12",
 
13
  "test:all": "npm run test:integration && npm run test:api && npm run test:code"
14
  },
15
  "dependencies": {
 
 
 
16
  "@ai-sdk/openai": "^2.0.4",
17
  "@ai-sdk/react": "^3.0.41",
 
18
  "@e2b/code-interpreter": "^2.0.0",
19
  "@mendable/firecrawl-js": "^4.3.3",
20
  "@radix-ui/react-accordion": "^1.2.12",
pnpm-lock.yaml CHANGED
@@ -8,24 +8,12 @@ importers:
8
 
9
  .:
10
  dependencies:
11
- '@ai-sdk/anthropic':
12
- specifier: ^2.0.1
13
- version: 2.0.57(zod@3.25.76)
14
- '@ai-sdk/google':
15
- specifier: ^2.0.4
16
- version: 2.0.52(zod@3.25.76)
17
- '@ai-sdk/groq':
18
- specifier: ^2.0.0
19
- version: 2.0.34(zod@3.25.76)
20
  '@ai-sdk/openai':
21
  specifier: ^2.0.4
22
  version: 2.0.89(zod@3.25.76)
23
  '@ai-sdk/react':
24
  specifier: ^3.0.41
25
  version: 3.0.41(react@19.1.0)(zod@3.25.76)
26
- '@anthropic-ai/sdk':
27
- specifier: ^0.57.0
28
- version: 0.57.0
29
  '@e2b/code-interpreter':
30
  specifier: ^2.0.0
31
  version: 2.3.3
@@ -261,30 +249,12 @@ importers:
261
 
262
  packages:
263
 
264
- '@ai-sdk/anthropic@2.0.57':
265
- resolution: {integrity: sha512-DREpYqW2pylgaj69gZ+K8u92bo9DaMgFdictYnY+IwYeY3bawQ4zI7l/o1VkDsBDljAx8iYz5lPURwVZNu+Xpg==}
266
- engines: {node: '>=18'}
267
- peerDependencies:
268
- zod: ^3.25.76 || ^4.1.8
269
-
270
  '@ai-sdk/gateway@3.0.16':
271
  resolution: {integrity: sha512-OOY5CfRJiHvh/8np2vs1RQaCZ5hWv2qOeEmmeiABXK3gLQHUVnCO+1hhoLsZdHM5iElu6M407dAOfyvTsKJqcQ==}
272
  engines: {node: '>=18'}
273
  peerDependencies:
274
  zod: ^3.25.76 || ^4.1.8
275
 
276
- '@ai-sdk/google@2.0.52':
277
- resolution: {integrity: sha512-2XUnGi3f7TV4ujoAhA+Fg3idUoG/+Y2xjCRg70a1/m0DH1KSQqYaCboJ1C19y6ZHGdf5KNT20eJdswP6TvrY2g==}
278
- engines: {node: '>=18'}
279
- peerDependencies:
280
- zod: ^3.25.76 || ^4.1.8
281
-
282
- '@ai-sdk/groq@2.0.34':
283
- resolution: {integrity: sha512-wfCYkVgmVjxNA32T57KbLabVnv9aFUflJ4urJ7eWgTwbnmGQHElCTu+rJ3ydxkXSqxOkXPwMOttDm7XNrvPjmg==}
284
- engines: {node: '>=18'}
285
- peerDependencies:
286
- zod: ^3.25.76 || ^4.1.8
287
-
288
  '@ai-sdk/openai@2.0.89':
289
  resolution: {integrity: sha512-4+qWkBCbL9HPKbgrUO/F2uXZ8GqrYxHa8SWEYIzxEJ9zvWw3ISr3t1/27O1i8MGSym+PzEyHBT48EV4LAwWaEw==}
290
  engines: {node: '>=18'}
@@ -321,10 +291,6 @@ packages:
321
  resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}
322
  engines: {node: '>=10'}
323
 
324
- '@anthropic-ai/sdk@0.57.0':
325
- resolution: {integrity: sha512-z5LMy0MWu0+w2hflUgj4RlJr1R+0BxKXL7ldXTO8FasU8fu599STghO+QKwId2dAD0d464aHtU+ChWuRHw4FNw==}
326
- hasBin: true
327
-
328
  '@babel/runtime@7.28.6':
329
  resolution: {integrity: sha512-05WQkdpL9COIMz4LjTxGpPNCdlpyimKppYNoJ5Di5EUObifl8t4tuLuUBBZEpoLYOmfvIWrsp9fCl0HoPRVTdA==}
330
  engines: {node: '>=6.9.0'}
@@ -3495,12 +3461,6 @@ packages:
3495
 
3496
  snapshots:
3497
 
3498
- '@ai-sdk/anthropic@2.0.57(zod@3.25.76)':
3499
- dependencies:
3500
- '@ai-sdk/provider': 2.0.1
3501
- '@ai-sdk/provider-utils': 3.0.20(zod@3.25.76)
3502
- zod: 3.25.76
3503
-
3504
  '@ai-sdk/gateway@3.0.16(zod@3.25.76)':
3505
  dependencies:
3506
  '@ai-sdk/provider': 3.0.4
@@ -3508,18 +3468,6 @@ snapshots:
3508
  '@vercel/oidc': 3.1.0
3509
  zod: 3.25.76
3510
 
3511
- '@ai-sdk/google@2.0.52(zod@3.25.76)':
3512
- dependencies:
3513
- '@ai-sdk/provider': 2.0.1
3514
- '@ai-sdk/provider-utils': 3.0.20(zod@3.25.76)
3515
- zod: 3.25.76
3516
-
3517
- '@ai-sdk/groq@2.0.34(zod@3.25.76)':
3518
- dependencies:
3519
- '@ai-sdk/provider': 2.0.1
3520
- '@ai-sdk/provider-utils': 3.0.20(zod@3.25.76)
3521
- zod: 3.25.76
3522
-
3523
  '@ai-sdk/openai@2.0.89(zod@3.25.76)':
3524
  dependencies:
3525
  '@ai-sdk/provider': 2.0.1
@@ -3560,8 +3508,6 @@ snapshots:
3560
 
3561
  '@alloc/quick-lru@5.2.0': {}
3562
 
3563
- '@anthropic-ai/sdk@0.57.0': {}
3564
-
3565
  '@babel/runtime@7.28.6': {}
3566
 
3567
  '@bufbuild/protobuf@2.10.2': {}
 
8
 
9
  .:
10
  dependencies:
 
 
 
 
 
 
 
 
 
11
  '@ai-sdk/openai':
12
  specifier: ^2.0.4
13
  version: 2.0.89(zod@3.25.76)
14
  '@ai-sdk/react':
15
  specifier: ^3.0.41
16
  version: 3.0.41(react@19.1.0)(zod@3.25.76)
 
 
 
17
  '@e2b/code-interpreter':
18
  specifier: ^2.0.0
19
  version: 2.3.3
 
249
 
250
  packages:
251
 
 
 
 
 
 
 
252
  '@ai-sdk/gateway@3.0.16':
253
  resolution: {integrity: sha512-OOY5CfRJiHvh/8np2vs1RQaCZ5hWv2qOeEmmeiABXK3gLQHUVnCO+1hhoLsZdHM5iElu6M407dAOfyvTsKJqcQ==}
254
  engines: {node: '>=18'}
255
  peerDependencies:
256
  zod: ^3.25.76 || ^4.1.8
257
 
 
 
 
 
 
 
 
 
 
 
 
 
258
  '@ai-sdk/openai@2.0.89':
259
  resolution: {integrity: sha512-4+qWkBCbL9HPKbgrUO/F2uXZ8GqrYxHa8SWEYIzxEJ9zvWw3ISr3t1/27O1i8MGSym+PzEyHBT48EV4LAwWaEw==}
260
  engines: {node: '>=18'}
 
291
  resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}
292
  engines: {node: '>=10'}
293
 
 
 
 
 
294
  '@babel/runtime@7.28.6':
295
  resolution: {integrity: sha512-05WQkdpL9COIMz4LjTxGpPNCdlpyimKppYNoJ5Di5EUObifl8t4tuLuUBBZEpoLYOmfvIWrsp9fCl0HoPRVTdA==}
296
  engines: {node: '>=6.9.0'}
 
3461
 
3462
  snapshots:
3463
 
 
 
 
 
 
 
3464
  '@ai-sdk/gateway@3.0.16(zod@3.25.76)':
3465
  dependencies:
3466
  '@ai-sdk/provider': 3.0.4
 
3468
  '@vercel/oidc': 3.1.0
3469
  zod: 3.25.76
3470
 
 
 
 
 
 
 
 
 
 
 
 
 
3471
  '@ai-sdk/openai@2.0.89(zod@3.25.76)':
3472
  dependencies:
3473
  '@ai-sdk/provider': 2.0.1
 
3508
 
3509
  '@alloc/quick-lru@5.2.0': {}
3510
 
 
 
3511
  '@babel/runtime@7.28.6': {}
3512
 
3513
  '@bufbuild/protobuf@2.10.2': {}