ServiceNow / AgentLab

Other
36 stars 13 forks source link

add_screenshot method not working #72

Open alzambranolu13 opened 3 weeks ago

alzambranolu13 commented 3 weeks ago

When setting use_screenshot to True I get the following error when trying to run a simple instruction:

raise self._make_status_error_from_response(err.response) from None
openai.BadRequestError: Error code: 400 - {'error': {'message': "Missing required parameter: 'messages[1].role'.", 'type': 'invalid_request_error', 'param': 'messages[1].role', 'code': 'missing_required_parameter'}}

Seems to be the API call needs to be updated.

xhluca commented 3 weeks ago

@alzambranolu13 can you share your environment with pip freeze > requirements.txt?