Fix examples, update to latest undici for vuln fix
This commit is contained in:
Generated
+3
-3
@@ -773,9 +773,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@earendil-works/gondolin/node_modules/undici": {
|
"node_modules/@earendil-works/gondolin/node_modules/undici": {
|
||||||
"version": "6.26.0",
|
"version": "6.27.0",
|
||||||
"resolved": "https://registry.npmjs.org/undici/-/undici-6.26.0.tgz",
|
"resolved": "https://registry.npmjs.org/undici/-/undici-6.27.0.tgz",
|
||||||
"integrity": "sha512-4yqz8a3n5HmGTlsbADNtr/dJlhkh/55Rq798G6ibiULcXbDtaLpTl1pvdqcbFfeoj3iSi52lePFM7h9H21cw/A==",
|
"integrity": "sha512-YmfV3YnEDzXRC5lZ2jWtWWHKGUm1zIt8AhesR1tens+HTNv+YZlN/dp6G727LOvMJ8xjP9Be7Y2Sdr96LDm+pg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.17"
|
"node": ">=18.17"
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ ${conversationText}
|
|||||||
{
|
{
|
||||||
apiKey: auth.apiKey,
|
apiKey: auth.apiKey,
|
||||||
headers: auth.headers,
|
headers: auth.headers,
|
||||||
|
env: auth.env,
|
||||||
maxTokens: 8192,
|
maxTokens: 8192,
|
||||||
signal,
|
signal,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ export default function (pi: ExtensionAPI) {
|
|||||||
const response = await complete(
|
const response = await complete(
|
||||||
ctx.model!,
|
ctx.model!,
|
||||||
{ systemPrompt: SYSTEM_PROMPT, messages: [userMessage] },
|
{ 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") {
|
if (response.stopReason === "aborted") {
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ export default function (pi: ExtensionAPI) {
|
|||||||
const response = await complete(
|
const response = await complete(
|
||||||
ctx.model!,
|
ctx.model!,
|
||||||
{ systemPrompt: SYSTEM_PROMPT, messages: [userMessage] },
|
{ 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") {
|
if (response.stopReason === "aborted") {
|
||||||
|
|||||||
@@ -191,6 +191,7 @@ export default function (pi: ExtensionAPI) {
|
|||||||
{
|
{
|
||||||
apiKey: auth.apiKey,
|
apiKey: auth.apiKey,
|
||||||
headers: auth.headers,
|
headers: auth.headers,
|
||||||
|
env: auth.env,
|
||||||
reasoningEffort: "high",
|
reasoningEffort: "high",
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user