I am building a multi-agent system of LLMs in Arabic. I am getting a bad response error suggesting the roles do not match a pattern that seems to restrict roles to Latin script only. It would be great to be inclusive of other languages/scripts especially in the context of multi-agent systems.
openai.BadRequestError: Error code: 400 - {'error': {'message': "'استاذ' does not match '^[a-zA-Z0-9_-]{1,64}$' - 'messages.1.name'", 'type': 'invalid_request_error', 'param': None, 'code': None}}
It sound like you are referring to “name” - giving the sender of the Chat Completions message a name.
“role”, in contrast, is the set list of options (system, user, assistant, function) that you can pass.
It seems the intention of name might have been more programmatic that language-based. It is used for passing the name of a function in the function role, for example. You can’t even pass the name “André”, because accented characters, nor “Joe Nye” because of the space.
Thank you, I appreciate your response. Yes unfortunately it seems we cannot have for now names in non-English. Mind you the the names of agents get called often in a multi-agent system and is part of the discussion. Calling an agent in the same language, in which the discussion is going on, is critical to the performance of such systems. I hope this can be fixed soon so that all languages are included.