Skip to content

Commit

Permalink
fix(prompt): resolve the llm-planning format error
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoushaw committed Jan 30, 2025
1 parent e8a3ea4 commit 115c4ea
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 54 deletions.
2 changes: 1 addition & 1 deletion packages/midscene/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@midscene/shared": "workspace:*",
"@langchain/core": "0.3.26",
"socks-proxy-agent": "8.0.4",
"openai": "4.57.1"
"openai": "4.81.0"
},
"devDependencies": {
"@modern-js/module-tools": "2.60.6",
Expand Down
1 change: 1 addition & 0 deletions packages/midscene/src/ai-model/prompt/llm-planning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ export const planSchema: ResponseFormatJSONSchema = {
type: ['object', 'null'],
description:
'Parameter of the action, can be null ONLY when the type field is Tap or Hover',
additionalProperties: false,
},
locate: {
type: ['object', 'null'],
Expand Down
2 changes: 1 addition & 1 deletion packages/web-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"cors": "2.8.5",
"express": "4.21.1",
"inquirer": "10.1.5",
"openai": "4.57.1",
"openai": "4.81.0",
"socket.io": "4.8.1",
"socket.io-client": "4.8.1"
},
Expand Down
84 changes: 32 additions & 52 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 115c4ea

Please sign in to comment.