Skip to content
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

fix: Fix the incorrect reasoning content concat logic in ai-proxy #1842

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CH3CHO
Copy link
Collaborator

@CH3CHO CH3CHO commented Mar 2, 2025

Ⅰ. Describe what this PR did

Wrap reasoning content with <think></think> when preprending it to the original assistant message.

image

image

image

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@CH3CHO CH3CHO requested a review from johnlanni March 2, 2025 06:26
@CH3CHO CH3CHO requested review from cr7258 and rinfx as code owners March 2, 2025 06:26
@codecov-commenter
Copy link

codecov-commenter commented Mar 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.41%. Comparing base (ef31e09) to head (7a0809a).
Report is 324 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1842      +/-   ##
==========================================
+ Coverage   35.91%   43.41%   +7.50%     
==========================================
  Files          69       76       +7     
  Lines       11576    12278     +702     
==========================================
+ Hits         4157     5331    +1174     
+ Misses       7104     6617     -487     
- Partials      315      330      +15     

see 71 files with indirect coverage changes

@CH3CHO CH3CHO marked this pull request as draft March 2, 2025 06:42
@CH3CHO CH3CHO force-pushed the fix/reasoning-content-concat branch from 45aae6f to 7a0809a Compare March 2, 2025 08:14
@CH3CHO CH3CHO marked this pull request as ready for review March 3, 2025 07:38
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.

2 participants