Avoid unsupported sampling option for Codex
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user