Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

puppeteer-demo 运行失败,辛苦帮忙看下 #24

Open
hankunfang opened this issue Dec 20, 2024 · 1 comment
Open

puppeteer-demo 运行失败,辛苦帮忙看下 #24

hankunfang opened this issue Dec 20, 2024 · 1 comment

Comments

@hankunfang
Copy link

Error
400 Missing required parameter: 'response_format.json_schema'. (request id: 2024122010154217363454491285978)

➜ puppeteer-demo git:(main) ✗ npx tsx demo.ts
(node:11133) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
Midscene - report file updated: /Users/hankunfang/workspace/midscene-example/puppeteer-demo/midscene_run/report/web-2024-12-20_10-15-40-231.html
/Users/hankunfang/workspace/midscene-example/puppeteer-demo/node_modules/@midscene/web/dist/lib/puppeteer.js:1291
throw new Error(`${errorTask == null ? void 0 : errorTask.error}
^

Error: 400 Missing required parameter: 'response_format.json_schema'. (request id: 2024122010154217363454491285978)
Error: 400 Missing required parameter: 'response_format.json_schema'. (request id: 2024122010154217363454491285978)
at Function.generate (/Users/hankunfang/workspace/midscene-example/puppeteer-demo/node_modules/openai/src/error.ts:70:14)

@hankunfang
Copy link
Author

/Users/hankunfang/workspace/midscene-example/puppeteer-demo/node_modules/@midscene/web/dist/lib/puppeteer.js:1291
throw new Error(`${errorTask == null ? void 0 : errorTask.error}
^

Error: 400 Missing required parameter: 'response_format.json_schema'. (request id: 202412201428294827994785579509)
Error: 400 Missing required parameter: 'response_format.json_schema'. (request id: 202412201428294827994785579509)
at Function.generate (/Users/hankunfang/workspace/midscene-example/puppeteer-demo/node_modules/openai/src/error.ts:70:14)
at OpenAI.makeStatusError (/Users/hankunfang/workspace/midscene-example/puppeteer-demo/node_modules/openai/src/core.ts:397:21)
at OpenAI.makeRequest (/Users/hankunfang/workspace/midscene-example/puppeteer-demo/node_modules/openai/src/core.ts:460:24)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async call (/Users/hankunfang/workspace/midscene-example/puppeteer-demo/node_modules/@midscene/core/dist/lib/index.js:5530:22)
at async callToGetJSONObject (/Users/hankunfang/workspace/midscene-example/puppeteer-demo/node_modules/@midscene/core/dist/lib/index.js:5576:20)
at async callAiFn (/Users/hankunfang/workspace/midscene-example/puppeteer-demo/node_modules/@midscene/core/dist/lib/index.js:5608:32)
at async plan (/Users/hankunfang/workspace/midscene-example/puppeteer-demo/node_modules/@midscene/core/dist/lib/index.js:5895:30)
at async Object.executor (/Users/hankunfang/workspace/midscene-example/puppeteer-demo/node_modules/@midscene/web/dist/lib/puppeteer.js:839:24)
at async Executor.flush (/Users/hankunfang/workspace/midscene-example/puppeteer-demo/node_modules/@midscene/core/dist/lib/index.js:4607:25)
at PuppeteerAgent.aiAction (/Users/hankunfang/workspace/midscene-example/puppeteer-demo/node_modules/@midscene/web/dist/lib/puppeteer.js:1291:13)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async (/Users/hankunfang/workspace/midscene-example/puppeteer-demo/demo.ts:28:5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant