Skip to content

feat: add penalties to responses create#3249

Open
nightcityblade wants to merge 1 commit into
openai:mainfrom
nightcityblade:nightcityblade/responses-penalties-3040
Open

feat: add penalties to responses create#3249
nightcityblade wants to merge 1 commit into
openai:mainfrom
nightcityblade:nightcityblade/responses-penalties-3040

Conversation

@nightcityblade
Copy link
Copy Markdown

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

Changes being requested

Adds frequency_penalty and presence_penalty support to Responses API create requests, including sync/async resource methods, websocket response create events, typed request params, and API resource tests.

Fixes #3040.

Additional context & links

Tests:

  • python3 -m compileall -q src/openai/resources/responses/responses.py src/openai/types/responses/response_create_params.py src/openai/types/responses/responses_client_event_param.py
  • ruff format --check src/openai/resources/responses/responses.py src/openai/types/responses/response_create_params.py src/openai/types/responses/responses_client_event_param.py tests/api_resources/test_responses.py
  • uv run pyright src/openai/resources/responses/responses.py src/openai/types/responses/response_create_params.py src/openai/types/responses/responses_client_event_param.py
  • ./scripts/mock --daemon && uv run pytest -q tests/api_resources/test_responses.py -k 'create_with_all_params'

@nightcityblade nightcityblade requested a review from a team as a code owner May 17, 2026 03:19
@moltx
Copy link
Copy Markdown

moltx commented May 17, 2026

smoke

Copy link
Copy Markdown

@moltx moltx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

smoke

Copy link
Copy Markdown

@moltx moltx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

smoke

Copy link
Copy Markdown

@moltx moltx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

smoke

Copy link
Copy Markdown

@moltx moltx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

smoke

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.

Support frequency_penalty and presence_penalty for openai client

2 participants