Fix examples, update to latest undici for vuln fix

This commit is contained in:
Mario Zechner
2026-06-25 16:01:07 +02:00
parent 0d145e895c
commit 1d48616328
5 changed files with 7 additions and 5 deletions
@@ -136,7 +136,7 @@ export default function (pi: ExtensionAPI) {
const response = await complete(
ctx.model!,
{ systemPrompt: SYSTEM_PROMPT, messages: [userMessage] },
{ apiKey: auth.apiKey, headers: auth.headers, signal: loader.signal },
{ apiKey: auth.apiKey, headers: auth.headers, env: auth.env, signal: loader.signal },
);
if (response.stopReason === "aborted") {