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_-]+$’.

Greg_Rog
Jul 8, 2024A: 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!
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)!
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
Thanks for the help here! 🙏