Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to update the messages under useChat @ version.3.1.1 #1492

Closed
liuhuapiaoyuan opened this issue May 4, 2024 · 2 comments
Closed

Unable to update the messages under useChat @ version.3.1.1 #1492

liuhuapiaoyuan opened this issue May 4, 2024 · 2 comments

Comments

@liuhuapiaoyuan
Copy link

Description

Unable to update the messages under useChat

"dependencies": {
    "@langchain/openai": "^0.0.28",
    "ai": "^3.1.1",
    "langchain": "^0.1.36",
    "next": "14.2.3",
    "openai": "^4.40.1",
    "react": "^18",
    "react-dom": "^18"
  },

Code example

image

Additional context

image

@liuhuapiaoyuan
Copy link
Author

The obvious endpoint has successfully returned the relevant information, but why is it not displaying on the UI?

@liuhuapiaoyuan
Copy link
Author

It turns out you need to configure streamMode:"text"... Why isn't it mentioned in the documentation, and I remember that in version 2.x it was the default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant