fix(auto-review): stabilize reviewer decisions
This commit is contained in:
1 parent
96c29c2e6a
commit
5a99cd9a47
2 files changed
+3
-1
No files matched your search
@@ -544,7 +544,7 @@ async function readDecision(stream: AsyncIterable<StreamChunk>): Promise<AutoRev
|
||||
return parseDecision(final.text)
|
||||
}
|
||||
|
||||
/** Private fixed-LLM risk-classifier seam for one frozen pending action. */
|
||||
/** Private deterministic fixed-LLM risk-classifier seam for one frozen pending action. */
|
||||
async function classifyRisk(
|
||||
ctx: Context,
|
||||
agent: Agent,
|
||||
@@ -560,6 +560,7 @@ async function classifyRisk(
|
||||
content: [{ type: 'text', text: reviewUserText(snapshot) }],
|
||||
source: { kind: 'plugin', plugin: 'dsh-auto-review' },
|
||||
})],
|
||||
temperature: 0,
|
||||
signal,
|
||||
})
|
||||
return readDecision(ctx.llm.stream(options))
|
||||
|
||||
@@ -384,6 +384,7 @@ describe('native review request', () => {
|
||||
provider: 'review',
|
||||
model: 'same-model',
|
||||
system: EXPECTED_REVIEW_POLICY,
|
||||
temperature: 0,
|
||||
})
|
||||
expect(request).not.toHaveProperty('sessionId')
|
||||
expect(request.maxTokens).toBeUndefined()
|
||||
|
||||
Reference in new issue
Block a user