When I deploy the nuxt_chat application to Vercel (in production), it behaves strangely...
If I click on a chat generated by `MOCK_DATA and send messages to OpenAI, it responds normally.
However, when I create a new chat (new chat), it opens the input field to type the message, but when I do so, OpenAI doesn't respond.
erros:
D9F4smBe.js:14 TypeError: Cannot read properties of undefined (reading 'id')
D9F4smBe.js:19 POST https://xxxXXXXXxxxx/api/chats/7d760c6f-dd5a-4728-9139-f9149e62ef0f/messages/generate 500 (Internal Server Error)
FetchError: [POST] "/api/chats/7d760c6f-dd5a-4728-9139-f9149e62ef0f/messages/generate": 500
D9F4smBe.js:14 TypeError: Cannot read properties of undefined (reading 'id')
i did not found this issue runing in dev mode
When I deploy the
nuxt_chatapplication toVercel(in production), it behaves strangely...If I click on a chat generated by `MOCK_DATA and send messages to OpenAI, it responds normally.
However, when I create a new chat (new chat), it opens the input field to type the message, but when I do so, OpenAI doesn't respond.
erros:
D9F4smBe.js:14 TypeError: Cannot read properties of undefined (reading 'id')D9F4smBe.js:19 POST https://xxxXXXXXxxxx/api/chats/7d760c6f-dd5a-4728-9139-f9149e62ef0f/messages/generate 500 (Internal Server Error)FetchError: [POST] "/api/chats/7d760c6f-dd5a-4728-9139-f9149e62ef0f/messages/generate": 500D9F4smBe.js:14 TypeError: Cannot read properties of undefined (reading 'id')i did not found this issue runing in dev mode