Skip to content

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

Closed
yenslife wants to merge 1 commit intoopenai:mainfrom
yenslife:main
Closed

fix(types): add "developer" role to support O-series models#2071
yenslife wants to merge 1 commit intoopenai:mainfrom
yenslife:main

Conversation

@yenslife
Copy link
Copy Markdown

@yenslife yenslife commented Feb 2, 2025

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.

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

Changes being requested

Additional context & links

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.
@yenslife yenslife requested a review from a team as a code owner February 2, 2025 06:58
@RobertCraigie
Copy link
Copy Markdown
Collaborator

Thanks for the PR! Sorry for the delayed review, looks like this has since been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants