openai / openai/openai-python

Include `type_to_response_format_param` in public API

Open
#2,695 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
31.6k
Forks
5.7k
Avg merge
1d 6h
Merged PRs (30d)
96

Description

Confirm this is a feature request for the Python library and not the underlying OpenAI API.
  • This is a feature request for the Python library
Describe the feature or improvement you're requesting

Now I have to do the following:
from openai.lib._parsing._completions import type_to_response_format_param

Please expose this publicly. You have to maintain it anyway, for the ChatCompletions.parse function.

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting openai.lib._parsing._completions and the public package exports used by ChatCompletions.parse. Determine the intended public import path, expose type_to_response_format_param there, and verify that existing ChatCompletions.parse behavior remains available through the public API.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.