Spaces:
Sleeping
Sleeping
Fix: Remove @ai-sdk/core and correct generateObject import
Browse files- app/api/analyze-edit-intent/route.ts +1 -1
- package.json +0 -1
app/api/analyze-edit-intent/route.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { createGroq } from '@ai-sdk/groq';
|
|
| 3 |
import { createAnthropic } from '@ai-sdk/anthropic';
|
| 4 |
import { createOpenAI } from '@ai-sdk/openai';
|
| 5 |
import { createGoogleGenerativeAI } from '@ai-sdk/google';
|
| 6 |
-
import { generateObject } from '@ai-sdk/
|
| 7 |
import { z } from 'zod';
|
| 8 |
// import type { FileManifest } from '@/types/file-manifest'; // Type is used implicitly through manifest parameter
|
| 9 |
|
|
|
|
| 3 |
import { createAnthropic } from '@ai-sdk/anthropic';
|
| 4 |
import { createOpenAI } from '@ai-sdk/openai';
|
| 5 |
import { createGoogleGenerativeAI } from '@ai-sdk/google';
|
| 6 |
+
import { generateObject } from '@ai-sdk/openai';
|
| 7 |
import { z } from 'zod';
|
| 8 |
// import type { FileManifest } from '@/types/file-manifest'; // Type is used implicitly through manifest parameter
|
| 9 |
|
package.json
CHANGED
|
@@ -18,7 +18,6 @@
|
|
| 18 |
"@ai-sdk/groq": "^2.0.0",
|
| 19 |
"@ai-sdk/openai": "^2.0.4",
|
| 20 |
"@ai-sdk/react": "^3.0.41",
|
| 21 |
-
"@ai-sdk/core": "^0.0.1",
|
| 22 |
"@anthropic-ai/sdk": "^0.57.0",
|
| 23 |
"@e2b/code-interpreter": "^2.0.0",
|
| 24 |
"@mendable/firecrawl-js": "^4.3.3",
|
|
|
|
| 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",
|