Skip to content

Conversation

@NikkiAung
Copy link

@NikkiAung NikkiAung commented Dec 30, 2025

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Developed types feat req for missing type for batch request input and output objects

src/openai/types/__init__.py
src/openai/types/batch_request_input.py
src/openai/types/batch_request_output.py

Additional context & links

https://platform.openai.com/docs/api-reference/batch/request-input
https://platform.openai.com/docs/api-reference/batch/request-output

Fixed #1937

@NikkiAung NikkiAung requested a review from a team as a code owner December 30, 2025 21:18
@NikkiAung
Copy link
Author

NikkiAung commented Jan 2, 2026

If anyone is interested in trying this feature early using this git branch, your feedback would be greatly appreciated, @RobertCraigie, @hallacy & @rachellim. :))

Next step would be considering making url in BatchRequestInput either of below.

url: Required[BatchRequestURL]

BatchRequestURL: TypeAlias = Literal[
    "/v1/responses",
    "/v1/chat/completions",
    "/v1/embeddings",
    "/v1/completions",
    "/v1/moderations",
]

or

url: Required[str]

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.

types: Missing type for batch request input and output objects

1 participant