Skip to content

fix: local api server stream transform#7489

Merged
louis-jan merged 2 commits into
release/v0.7.7from
fix/local-api-server-stream-transform
Feb 10, 2026
Merged

fix: local api server stream transform#7489
louis-jan merged 2 commits into
release/v0.7.7from
fix/local-api-server-stream-transform

Conversation

@louis-jan

Copy link
Copy Markdown
Contributor

Describe Your Changes

This PR fixes an issue while transforming response from /messages for some of providers

Fixes Issues

  • Closes #
  • Closes #

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

Copilot AI review requested due to automatic review settings February 10, 2026 07:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes response transformation behavior for Anthropic /messages proxying, particularly around when to transform upstream responses vs pass them through unchanged (to better support provider differences).

Changes:

  • Adjusts /messages success handling to passthrough the upstream response stream without applying OpenAI→Anthropic transformation.
  • Updates /chat/completions fallback handling to transform differently for streaming vs non-streaming requests.
  • Adds additional logging and minor formatting refactors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src-tauri/src/core/server/proxy.rs Outdated
Comment thread src-tauri/src/core/server/proxy.rs
@github-actions

github-actions Bot commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

Barecheck - Code coverage report

Total: 24.59%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

@louis-jan louis-jan merged commit 38b859d into release/v0.7.7 Feb 10, 2026
11 checks passed
@louis-jan louis-jan deleted the fix/local-api-server-stream-transform branch February 10, 2026 07:53
@github-project-automation github-project-automation Bot moved this to QA in Jan Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: QA

Development

Successfully merging this pull request may close these issues.

3 participants