openai-python
openai-python copied to clipboard
array + enum in function calling
Confirm this is a feature request for the Python library and not the underlying OpenAI API.
- [X] This is a feature request for the Python library
Describe the feature or improvement you're requesting
Is it currently possible to get function calling with an array of inputs for an argument and a restriction via enums: something like:
'parameters': {'type': 'object', 'properties': {'lab_values': {'type': 'array', 'enum': ['Asparate Aminotransferase (AST)', 'Barbiturate Screen', 'Benzodiazepine Screen', ]}}, 'required': ['lab_values'], 'additionalProperties': False}}}]
?
Additional context
No response
This sounds like an issue with the underlying OpenAI API and not the SDK, so I'm going to go ahead and close this issue.
I think this should be possible but would you mind reposting at community.openai.com?