We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff63e33 commit 52a8fd0Copy full SHA for 52a8fd0
web-app/src/utils/reasoning.ts
@@ -7,7 +7,7 @@ import {
7
8
// Helper function to get reasoning content from an object
9
function getReasoning(obj: { reasoning_content?: string | null; reasoning?: string | null } | null | undefined): string | null {
10
- return obj?.reasoning_content || obj?.reasoning || null
+ return obj?.reasoning_content ?? obj?.reasoning ?? null
11
}
12
13
// Extract reasoning from a message (for completed responses)
0 commit comments