Q: why i keep getting this error when using any model from openai using my own API?

i tried putting new API, setting up new assistant, but noting solved the issue, works fine with anthropic model

Oops! Something went wrong.

Error Info: Invalid ‘messages[1].name’: string does not match pattern. Expected a string that matches the pattern ‘^[a-zA-Z0-9_-]+$’.

109345668221694105752Jul 7, 2024
Founder Team
Greg_Rog

Greg_Rog

Jul 8, 2024

A: Thanks for the question! This is due to special characters either from your username or the name of the assistant you've created. OpenAI returns this error. From the comment I see this was actually the case and you had space in the name. We've spotted that we probably did not have validation for it in the onboarding chat process - fixing straight away!

Share
Helpful?
Log in to join the conversation
Posted: Jul 7, 2024

Hey, got the same issue, probably due to your username (or your bot username) containing a blank space or a special character : remove it (or them)!

Posted: Jul 8, 2024

awsome thanks a lot, it was my name, it had my first name space last name, i just removed my last name and the space between, it's working now

Founder
Posted: Jul 8, 2024

Thanks for the help here! 🙏