context_management=[{"type": "type"}] in tests, not 'compaction'
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Start by inspecting src/openai/types/responses/response_create_params.py and the context_management example in tests/api_resources/test_responses.py. Compare the declared supported entry type with the value used by the test, then run that test file. Done means the test uses the supported context-management value and passes.
Written by the indexing model from the issue text.
Description
Confirm this is an issue with the Python library and not an underlying OpenAI API
- This is an issue with the Python library
Describe the bug
src/openai/types/responses/response_create_params.py gives us the supported string:
"""The context management entry type. Currently only 'compaction' is supported."""
It is sufficent to say that tests/api_resources/test_responses.py would fail without the right value for that key, or that the API actually able to run that test is not validating the one enum that would make something happen.
To Reproduce
- look at the code
- be astonished.
Code snippets
response = client.responses.create(
background=True,
context_management=[
{
"type": "type", # wot?
"compact_threshold": 1000,
}
],
OS
AnyOS
Python version
Python 3.12
Library version
v2.20.0
- Dominant language
- Python
- Stars
- 31.7k
- Forks
- 6.8k
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 131
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openai/openai-python
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
openai/openai-python#4017 · 2 comments ·
Maintainers usually reply within 1 day
-
sdk-breaking-change v4
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
openai/openai-python#3837 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
openai/openai-python#3556 · 3 comments ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
openai/openai-python#2927 · 7 comments ·
Maintainers usually reply within 1 day
-
bug openapi
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openai/openai-python#2502 · 7 comments ·
Maintainers usually reply within 1 day
All issues in openai/openai-python
Similar issues
-
upstream update
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
conan-io/conan-center-index#31098 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
john-kurkowski/tldextract#382 ·
-
comp/tools duplicate P2 sweeper:risk-compatibility tool/mcp type/bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
NousResearch/hermes-agent#132042 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
deepset-ai/haystack#13092 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
feder-cr/invisible_playwright_mcp#1408 ·
Maintainers usually reply within 1 day