fix: use correct executor endpoint and field names
This commit is contained in:
parent
88a78581aa
commit
48b6beaeaa
1 changed files with 3 additions and 2 deletions
|
|
@ -36,14 +36,15 @@ export async function executePackage(
|
|||
const controller = new AbortController();
|
||||
const timeoutId = setTimeout(() => controller.abort(), timeout);
|
||||
|
||||
const response = await fetch(`${SANDBOX_URL}/execute`, {
|
||||
const response = await fetch(`${SANDBOX_URL}/execute-tool`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify({
|
||||
packageName,
|
||||
functionName,
|
||||
name: functionName,
|
||||
version: 'latest',
|
||||
params,
|
||||
}),
|
||||
signal: controller.signal,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue