Skip to content

FR: Responses API #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
svilupp opened this issue Mar 11, 2025 · 2 comments
Open

FR: Responses API #68

svilupp opened this issue Mar 11, 2025 · 2 comments

Comments

@svilupp
Copy link
Contributor

svilupp commented Mar 11, 2025

It would be great to integrate the new Responses API from OpenAI.

Announcement: https://openai.com/index/new-tools-for-building-agents/

It seems mostly like copy&paste with completions endpoint but with a few added fields: https://platform.openai.com/docs/api-reference/responses/create

@roryl23
Copy link
Collaborator

roryl23 commented Mar 13, 2025

I'd love to do this, but I need to find a day job first

@kafisatz
Copy link

kafisatz commented Jun 3, 2025

this works for me, maybe just add it to the source code?
It is almost a 1:1 copy of create_chat

export create_responses 
function create_responses(api_key::String,
    model_id::String,
    input;
    http_kwargs::NamedTuple = NamedTuple(),
    streamcallback = nothing,
    kwargs...)
    return OpenAI.openai_request("responses",
        api_key;
        method = "POST",
        http_kwargs = http_kwargs,
        model = model_id,
        input = input,
        streamcallback = streamcallback,
        kwargs...)
end

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

No branches or pull requests

3 participants