Avoid unsupported sampling option for Codex

This commit is contained in:
Matteo Benedetto
2026-09-23 11:10:07 +02:00
parent 9c4ccffa50
commit dd6f976003
+1 -1
View File
@@ -931,7 +931,7 @@ async function analyzeCommand(
try {
const stream = ctx.modelRegistry.streamSimple(ctx.model, {
messages: [{ role: "user", content: prompt, timestamp: Date.now() }],
}, { maxTokens: 300, temperature: 0.1, timeoutMs: 15_000, signal: ctx.signal });
}, { maxTokens: 300, timeoutMs: 15_000, signal: ctx.signal });
let response = "";
for await (const event of stream) {
if (event.type === "text_delta") response += event.delta;