Skip to content

Migrate OpenAI backends to Responses API#85

Merged
NakaokaRei merged 1 commit intomasterfrom
feature/migrate-to-responses-api
Apr 12, 2026
Merged

Migrate OpenAI backends to Responses API#85
NakaokaRei merged 1 commit intomasterfrom
feature/migrate-to-responses-api

Conversation

@NakaokaRei
Copy link
Copy Markdown
Owner

Summary

  • Migrate OpenAIBackend and OpenAIVisionBackend from Chat Completions API (/v1/chat/completions) to the new Responses API (/v1/responses)
  • Update request format: messages + response_formatinstructions + input + text.format
  • Update response parsing: choices[0].message.contentoutput[].content[].text
  • Update vision content types: image_urlinput_image, textinput_text

Closes #84

Test plan

  • swift build passes
  • swift test passes
  • Manual test with OpenAI API key via sagui CLI or sample app

🤖 Generated with Claude Code

Migrate both OpenAIBackend and OpenAIVisionBackend to use the new
OpenAI Responses API endpoint (/v1/responses) instead of Chat
Completions (/v1/chat/completions).

Closes #84

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

🧪 Test Results

✅ All Tests Passed!


Workflow run: 24299425064
Powered by xcbeautify 🎨

@NakaokaRei NakaokaRei merged commit d83fb0a into master Apr 12, 2026
5 checks passed
@NakaokaRei NakaokaRei deleted the feature/migrate-to-responses-api branch April 12, 2026 05:24
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.

Migrate OpenAI backends from Chat Completions API to Responses API

1 participant