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

Invalid messages[1].name #251

Open
wre136 opened this issue Aug 8, 2024 · 1 comment
Open

Invalid messages[1].name #251

wre136 opened this issue Aug 8, 2024 · 1 comment

Comments

@wre136
Copy link

wre136 commented Aug 8, 2024

I just installed and setup Extended OpenAI Converstation as per FutureProofHomes video here:

https://youtu.be/pAKqKTkx5X4?si=-qt_DwQWwiGm-SVB

After stumbling around and reliasing that I had to switch to project based API keys, I had this working for two calls. Howeve, I am now getting the following error when I debug my voice assistant:

"Sorry, I had a problem talking to OpenAI: Error code: 400 - {'error': {'message': "Invalid 'messages[1].name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_-]+$'.", 'type': 'invalid_request_error', 'param': 'messages[1].name', 'code': 'invalid_value'}}"

image

Since I have not done this before, please let me know what I can include to help figure out why I am getting this problem and how I can resolve it. Thank you!

@xianminx
Copy link

xianminx commented Nov 4, 2024

Please make sure the assistant name has no space, or more rigidly, can only be ^[a-zA-Z0-9_-]+$

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

2 participants