Skip to content

fix: #3282 reject unsupported Chat Completions reusable prompts#3283

Merged
seratch merged 1 commit into
openai:mainfrom
Aphroq:fix/chat-completions-prompt-validation
May 9, 2026
Merged

fix: #3282 reject unsupported Chat Completions reusable prompts#3283
seratch merged 1 commit into
openai:mainfrom
Aphroq:fix/chat-completions-prompt-validation

Conversation

@Aphroq
Copy link
Copy Markdown
Contributor

@Aphroq Aphroq commented May 8, 2026

Summary

Make OpenAIChatCompletionsModel reject reusable prompt values with a clear UserError instead of accepting and dropping them before chat.completions.create().

This keeps the existing prompt=None path unchanged and covers both non-streaming and streaming Chat Completions calls. I also checked the adjacent Responses model path, which already sends prompt, and the related server-managed state issue #3275 / PR #3279, which is a separate unsupported-parameter case.

Test plan

  • uv run pytest tests/models/test_openai_chatcompletions.py tests/models/test_openai_chatcompletions_stream.py -k "rejects_prompt"
  • bash .agents/skills/code-change-verification/scripts/run.sh

Issue number

Closes #3282

Checks

  • I've added new tests (if relevant)
  • I've added/updated the relevant documentation
  • I've run make lint and make format
  • I've made sure tests pass

@Aphroq Aphroq changed the title Reject unsupported Chat Completions reusable prompts fix: #3282 Reject unsupported Chat Completions reusable prompts May 8, 2026
@Aphroq Aphroq changed the title fix: #3282 Reject unsupported Chat Completions reusable prompts fix: #3282 reject unsupported Chat Completions reusable prompts May 8, 2026
Copy link
Copy Markdown
Member

@seratch seratch left a comment

Choose a reason for hiding this comment

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

Can you resolve the conflicts?

@seratch seratch added this to the 0.17.x milestone May 8, 2026
@Aphroq Aphroq force-pushed the fix/chat-completions-prompt-validation branch from 154d9d3 to 8ec5355 Compare May 8, 2026 23:21
@github-actions github-actions Bot added the bug Something isn't working label May 8, 2026
@Aphroq
Copy link
Copy Markdown
Contributor Author

Aphroq commented May 8, 2026

Resolved.

@seratch seratch merged commit 035271d into openai:main May 9, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feature:chat-completions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chat Completions model silently ignores reusable prompts

2 participants