Skip to content

fix(openai): Simplify Completions input handling#5690

Open
alexander-alderman-webb wants to merge 2 commits intowebb/openai/remove-common-input-datafrom
webb/openai/completions-input
Open

fix(openai): Simplify Completions input handling#5690
alexander-alderman-webb wants to merge 2 commits intowebb/openai/remove-common-input-datafrom
webb/openai/completions-input

Conversation

@alexander-alderman-webb
Copy link
Contributor

@alexander-alderman-webb alexander-alderman-webb commented Mar 18, 2026

Description

Replace set_data_normalized with set_data for parameters declared to have primitive types.

https://github.com/openai/openai-python/blob/acd0c54d8a68efeedde0e5b4e6c310eef1ce7867/src/openai/resources/completions.py#L52

Issues

Reminders

@github-actions
Copy link
Contributor

github-actions bot commented Mar 18, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Langchain

  • Set gen_ai.operation.name and gen_ai.pipeline.name on LLM spans by ericapisani in #5849
  • Broaden AI provider detection beyond OpenAI and Anthropic by ericapisani in #5707
  • Update LLM span operation to gen_ai.generate_text by ericapisani in #5796

Bug Fixes 🐛

  • (openai) Simplify Completions input handling by alexander-alderman-webb in #5690

Internal Changes 🔧

Langchain

  • Add text completion test by alexander-alderman-webb in #5740
  • Add tool execution test by alexander-alderman-webb in #5739
  • Add basic agent test with Responses call by alexander-alderman-webb in #5726
  • Replace mocks with httpx types by alexander-alderman-webb in #5724
  • Consolidate span origin assertion by alexander-alderman-webb in #5723
  • Consolidate available tools assertion by alexander-alderman-webb in #5721

Other

  • (openai) Move input handling code into API-specific functions by alexander-alderman-webb in #5687
  • Temporarily stop running litellm tests by alexander-alderman-webb in #5851

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 18, 2026

Codecov Results 📊

13 passed | Total: 13 | Pass Rate: 100% | Execution Time: 6.91s

All tests are passing successfully.

❌ Patch coverage is 0.00%. Project has 14438 uncovered lines.

Files with missing lines (1)
File Patch % Lines
openai.py 4.45% ⚠️ 623 Missing

Generated by Codecov Action

@alexander-alderman-webb alexander-alderman-webb marked this pull request as ready for review March 25, 2026 08:17
@alexander-alderman-webb alexander-alderman-webb requested a review from a team as a code owner March 25, 2026 08:17
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.

2 participants