Skip to content

FIX: Ensuring _score_value_with_llm works with reasoning targets#1403

Merged
jsong468 merged 3 commits intoAzure:mainfrom
jsong468:llm_score_bug_fix
Feb 25, 2026
Merged

FIX: Ensuring _score_value_with_llm works with reasoning targets#1403
jsong468 merged 3 commits intoAzure:mainfrom
jsong468:llm_score_bug_fix

Conversation

@jsong468
Copy link
Contributor

Description

This PR fixes a bug where reasoning models would return a Message with a reasoning piece and a text piece when scoring. We were originally taking the first piece and parsing the score JSON from there, but we now find the first text piece.

Tests and Documentation

Tried out a scorer using OpenAIResponseTarget in a notebook and ran scoring unit tests.

@jsong468 jsong468 merged commit 8a85254 into Azure:main Feb 25, 2026
29 checks passed
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