Define + export `ServiceTiers` string literal
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Search the Python library for the existing service_tier definitions and exported string-literal types. Define and export ServiceTiers so callers can use it for annotations, while keeping compatibility with SDK versions that support different service tiers; verify the relevant existing tests.
Written by the indexing model from the issue text.
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
If I want to annotate service_tier in my code, I have to hard-code a type like Literal["auto", "default", "flex", "scale", "priority", "fast"], and then the hard-coded type annotation breaks if I'm using anything other than the latest version of the sdk.
Additional context
No response
- Dominant language
- Python
- Stars
- 31.7k
- Forks
- 5.8k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 96
Contributor 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
-
v4
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
openai/openai-python#3837 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
openai/openai-python#3755 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
openai/openai-python#3402 · 2 comments ·
-
upstream
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
openai/openai-python#3294 · 2 comments ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
openai/openai-python#2927 · 6 comments ·
All issues in openai/openai-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100