Skip to content
Discussion options

You must be logged in to vote

Hey @bicheichane! Based on your error message about "messages[0].name" not matching the required pattern when using Azure OpenAI chat completions, here's what could be causing the issue and some guidance on how to resolve it:

What’s Happening?

Your error:

HTTP 400 (invalid_request_error: invalid_value)
Parameter: messages[0].name

Invalid 'messages[0].name': string does not match pattern. Expected a string that matches the pattern '^[^\s<|\\/>]+$'.

This means that the name property on one of your chat completion message objects either:

  • contains spaces, special characters like <, |, \, /, or >, or
  • is empty or otherwise doesn't comply with the expected pattern.

Why This Matters

  • The name

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by amynic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working azure-openai ai-agents
2 participants