Skip to content

Migrate the direct OpenAI API backend to the Responses API #88

Description

@adityathebe

Problem

Captain's direct OpenAI API backend currently goes through Genkit's Chat Completions transport (/v1/chat/completions). OpenAI recommends the Responses API for new projects and as the future direction for agentic applications.

This is already causing a capability gap. For GPT-5.4 and later, Chat Completions does not support function tools with a reasoning_effort other than none. PR #87 therefore has to disable reasoning effort for tool-enabled GPT-5.6 requests. That is a tactical compatibility workaround, not the desired product behavior.

Codex runtimes already use the Responses protocol and are not part of this migration.

Image https://developers.openai.com/api/docs/guides/migrate-to-responses#responses-benefits

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions