#Bug Report: useCopilotChatSuggestions with GPT-5 Model

1 messages · Page 1 of 1 (latest)

elder owl
#

I used the copilot-chat-with-your-data example and reproduced this issue. The only difference is that I used the gpt-5 model.

#

Error: [Network] Cannot read properties of undefined (reading 'includes') when using gpt-5

#

Bug Report: useCopilotChatSuggestions with GPT-5 Model

#

based on the copilot-chat-with-your-data example and the useCopilotChatSuggestions hooks
env: nodejs 21.0.0
"@copilotkit/react-core": "1.10.0",
"@copilotkit/react-ui": "1.10.0",
"@copilotkit/runtime": "1.10.0",

latent salmon
elder owl
latent salmon
#

Yes, to use GPT-5, you need to verify your organization with OpenAI. That's likely why it's failing with GPT-5 but working with other models. You can read more about the verification process here

elder owl
#

I've verified it, but the error still persists.

elder owl
#

I've created a minimal reproduction on CodeSandbox to demonstrate the issue:
https://codesandbox.io/p/devbox/mmj8l5
The problem only occurs when using useCopilotChatSuggestions with the GPT-5 model. With GPT-4, everything works fine.
Could you please help check if this might be an issue with the useCopilotChatSuggestions hook when using GPT-5?

latent salmon
#

If so, let me reach out to the appropriate team member who can answer this more accurately.

elder owl
#

Thanks a lot! I'll wait for the update. Please let me know if I can provide any more info to help debug.

latent salmon
#

Just to clarify - are you using your own openai API key for this integration?

elder owl
#

Yes, I’m using my own OpenAI API key from my verified organization account.

latent salmon
#

Thanks for confirming! I've passed your query to the team and will update you once I hear back.

elder owl
#

Appreciate it, I’ll keep an eye out for your update 👍

quasi current
#

Hi Wap, looks like OpenAI's API changes to GPT5 had some breaking changes. We'll fix the support here, mind opening a github issue and linking here?