user name (or function) with spaces fails
danielp370 opened this issue · comments
danielp370 commented
OpenAI does checks function parameters for ^[a-zA-Z0-9_-]{1,64}$.
Unfortunately some integrations have spaces in their names. For examples, the Voice Over IP integration that can be used to talk directly to a HA Voice Assist via voip phones.
Error code: 400 - {'error': {'message': "'Voice over IP' does not match '^[a-zA-Z0-9_-]{1,64}$' - 'messages.1.name'", 'type': 'invalid_request_error', 'param': None, 'code': None}}
I have a patch #165
Validated that this fixes the issue and VoIP works nicely.