Copilot commented on code in PR #6171:
URL: https://github.com/apache/texera/pull/6171#discussion_r3525945830
##########
agent-service/package.json:
##########
@@ -17,7 +17,7 @@
"dependencies": {
"@ai-sdk/openai": "3.0.73",
"@elysiajs/cors": "1.4.0",
- "ai": "6.0.208",
+ "ai": "7.0.15",
"ajv": "8.18.0",
Review Comment:
`ai` is upgraded to v7, but `@ai-sdk/openai` remains on v3. In this repo,
`createOpenAI()` (from `@ai-sdk/openai`) is used to build the `LanguageModel`
passed into `generateText()` from `ai` (see `src/server.ts` and
`src/agent/texera-agent.ts`). With `[email protected]` pulling in
`@ai-sdk/[email protected]`/`[email protected]` while `@ai-sdk/[email protected]`
depends on `@ai-sdk/[email protected]`/`[email protected]` (as reflected in
`bun.lock`), this is very likely to cause type/runtime incompatibilities. Align
these packages by upgrading `@ai-sdk/openai` to the compatible 4.x line and
regenerating `bun.lock`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]