feat: improve qwen3 compatibility (#106)

* feat: improve qwen3 compatibility

* fix: qwen

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Simon
2026-01-13 15:04:03 +08:00
committed by GitHub
parent 7efce91a91
commit 3fa7c8b85a
4 changed files with 10 additions and 0 deletions

View File

@@ -305,6 +305,7 @@ export class PageAgent extends EventTarget {
})
return {
description: 'You MUST call this tool every step. Outputs your reflections and next action.',
inputSchema: macroToolSchema as zod.ZodType<MacroToolInput>,
execute: async (input: MacroToolInput): Promise<MacroToolResult> => {
// abort

View File

@@ -74,6 +74,9 @@ export function normalizeResponse(response: any): any {
// fix double stringified arguments
resolvedArguments = safeJsonParse(resolvedArguments)
if (resolvedArguments.action) {
resolvedArguments.action = safeJsonParse(resolvedArguments.action)
}
// fix incomplete formats
if (!resolvedArguments.action) {