Azure-Samples / Azure-Samples/computer-use

Random 'No tool output found ' exception from the endpoint side

Aperta
#22 2 commenti 1 reazione 1 assegnatario Rivendicata da @balapv Vedi su GitHub
Lingua principale
Python
Stelle
76
Fork
37
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

While running the latest code from the repo, I get below error from the computer-use-preview endpoint:

```console
File "C:\Work\python-projects\ComputerUse\.venv\Lib\site-packages\openai\_base_client.py", line 1023, in _request
raise self._make_status_error_from_response(err.response) from None
openai.BadRequestError: Error code: 400 - {'error': {'message': 'No tool output found for computer call call_4.', 'type': 'invalid_request_error', 'param': 'input', 'code': None}}
```

The issue here is that the case is quite random - sometimes it throws at the very beginning and the other times it does after a few actions. I cannot figure out which condition makes the problem. I am using the same CUA.py code of the latest version in this repo. I just added the print part to see what's going on.

```console
(.venv) c:\Work\python-projects\ComputerUse\computer-use-model\computer-use>python main.py --instruction "Open Chrome browser and search the weather of Bellevue WA and summarize the information for this week"
User: Open Chrome browser and search the weather of Bellevue WA and summarize the information for this week
***computer_call_output***
call_id: call_1
screenshot {}
***calling client***
call_id: call_2

Action: Launching Chrome browser on desktop
***computer_call_output***
call_id: call_2
double_click {'x': 45, 'y': 140}
***calling client***
call_id: call_3

***computer_call_output***
call_id: call_3
wait {}
***calling client***
call_id: call_zvCUYd0VDqkNxYhJ1Kl7RUao

Action: Searching weather for Bellevue, WA
***computer_call_output***
call_id: call_4
type {'text': 'weather Bellevue WA'}
***calling client***
Traceback (most recent call last):
....
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.