openai-python icon indicating copy to clipboard operation
openai-python copied to clipboard

fix(types): add "developer" role to support O-series models

Open yenslife opened this issue 10 months ago • 0 comments

The OpenAI API now supports a "developer" role specifically for O-series models, but this role was missing in the type definitions. This update adds the "developer" role to ChatCompletionRole type alias to prevent IDE warnings while maintaining compatibility with the actual API behavior.

  • [x] I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Additional context & links

yenslife avatar Feb 02 '25 06:02 yenslife