Should we do this using PM? We are now just polluting this topic.
But:
[
{
"role": "assistant",
"content": "",
"tool_calls": [
{
"id": "call_4xitHqRBJ8Wc1HI546r3Wj1U",
"type": "function",
"function": {
"name": "web_search",
"arguments": "{\"query\":\"International Dog Day date and history\"}"
}
}
]
},
{
"role": "tool",
"tool_call_id": "call_4xitHqRBJ8Wc1HI546r3Wj1U",
"content": "International Dog Day date and history: my search for this on the internet failed."
}
]
The problem was not old or new user. New users also had the error. Today I got errors again. The error image is as follows. There is also a warning about the characters.
Chatbot: There was a problem with Chat Completion: status: 400, message: Invalid ‘messages[1].name’: string does not match pattern. Expected a string that matches the pattern ‘+$’.
I did the solution suggestions you suggested, my problem continues. I have been following the problem since I last wrote. I discovered that the users who have this problem have non-English characters in their usernames. Could there be a problem with this? There is no problem with the other usernames that have English characters.
Error: Chatbot: There was a problem with Chat Completion: status: 400, message: Invalid 'messages[1].name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_-]+$'.
Yes, it gives error because of usernames. If the username contains non-English letters such as ş, i, ü, ö, etc., it gives an error. As a bot error:
I’ve tried working out a response for you several times, but ultimately failed. Please contact the admin if this persists, thank you!
It writes the message. In the log screen, one of the errors is related to characters.
I edit the username of the user who published the post that I got the error and make it English characters. Then I tag the bot in the post that got the error, the bot responds without getting an error.
But if I do not edit the username and tag the bot in the post, the bot does not respond again and writes the same error.