You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the suggestion. This wouldn't work when people provide raw dictionaries, like {'role': 'system', …}, but we do have related ideas to make this more convenient. Stay tuned.
Confirm this is a feature request for the Python library and not the underlying OpenAI API.
Describe the feature or improvement you're requesting
Currently, classes like
ChatCompletionSystemMessageParam
require a parameter of type Required[Literal['system']].The class name already contains this required role, so this param is simply redundant information while not allowing any different values.
Suggestion: This parameter should be made optional with the required literal as default value for backwards compatibility or even completely omitted.
Additional context
No response
The text was updated successfully, but these errors were encountered: