mirror of
https://github.com/sune-org/ORP.git
synced 2026-01-13 16:17:59 +00:00
Fix: Respect reasoning.exclude for OpenRouter
This commit is contained in:
2
index.js
2
index.js
@@ -303,7 +303,7 @@ export class MyDurableObject {
|
||||
for await (const chunk of stream) {
|
||||
if (this.phase !== 'running') break;
|
||||
const delta = chunk?.choices?.[0]?.delta;
|
||||
if (delta?.reasoning) this.queueDelta(delta.reasoning);
|
||||
if (delta?.reasoning && body.reasoning?.exclude !== true) this.queueDelta(delta.reasoning);
|
||||
if (delta?.content) this.queueDelta(delta.content);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user