UI-TARS-desktop icon indicating copy to clipboard operation
UI-TARS-desktop copied to clipboard

OpenAI API ERROR: 400 Input should be a valid string, Input should be a valid list

Open alex-pokydin opened this issue 10 months ago • 3 comments

I'm trying to use OpenAI API but got error 400 after "Thinking..."

Image

Image

ERROR: 400 [
  {'type': 'string_type', 'loc': ('body', 'stop', 'str'), 'msg': 'Input should be a valid string', 'input': None
  },
  {'type': 'list_type', 'loc': ('body', 'stop', 'list[str
    ]'), 'msg': 'Input should be a valid list', 'input': None
  },
  {'type': 'list_type', 'loc': ('body', 'stop', 'list[list[int
      ]
    ]'), 'msg': 'Input should be a valid list', 'input': None
  }
]

Please, help me or share your ides Thanks!

alex-pokydin avatar Mar 04 '25 19:03 alex-pokydin

same problem

Starlento avatar Mar 05 '25 03:03 Starlento

it looks like the issue is connected with stop option in ./packages/sdk/src/Model.ts

Image

but, anyway, action box=[x1, y1, x2, y2] coorditanes generated by gpt-4o are wrong.

alex-pokydin avatar Mar 13 '25 00:03 alex-pokydin

same here

duel0 avatar May 09 '25 19:05 duel0