Skip to content

Batch Endpoint and Request Input Object URL mismatch #2497

@ArdaOzd

Description

@ArdaOzd

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

Dear Developers,

While creating a Batch Request, it is possible to set the endpoint as "v1/responses", however the URL input for individual request input object inside the jsonl file, does not support "v1/responses". Therefore, rendering "v1/responses" endpoint support for BatchAPI useless.

To Reproduce

  1. Create a jsonl file including a simple Batch request input, set the URL "v1/responses" (though this is not available) or "v1/chat/completions" (which is supported).
  2. Create a Batch task with endpoint="v1/responses" (which is supposedly supported).
  3. You will get an URL and Endpoint mismatch.
  4. Resulting in the documentation fail, or a missing feature. Rendering Responses endpoint useless.

Code snippets

OS

macOS

Python version

python v3.12

Library version

openai >1.70

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions