text-generation-webui icon indicating copy to clipboard operation
text-generation-webui copied to clipboard

API returns only none, none

Open CyberTimon opened this issue 2 years ago • 1 comments

Describe the bug

When using the api-example-stream.py I only get "None None" in the output. When I remove to get only the data of the request I get this: {'msg': 'process_completed', 'output': {'data': [None], 'is_generating': False, 'duration': 0.0002684593200683594, 'average_duration': 0.00038123130798339844}, 'success': True} {'msg': 'process_completed', 'output': {'data': [None], 'is_generating': False, 'duration': 0.0002684593200683594, 'average_duration': 0.00038123130798339844}, 'success': True}

Is there an existing issue for this?

  • [X] I have searched the existing issues

Reproduction

Use api-example-stream.py and you will get this

Screenshot

No response

Logs

(base) cybertimon@server:~/Repositorys/CT AI Vicuna$ python3 api-example-stream.py
None
None
(base) cybertimon@server:~/Repositorys/CT AI Vicuna$ python3 api-example-stream.py
{'msg': 'process_completed', 'output': {'data': [None], 'is_generating': False, 'duration': 0.0002684593200683594, 'average_duration': 0.00038123130798339844}, 'success': True}
{'msg': 'process_completed', 'output': {'data': [None], 'is_generating': False, 'duration': 0.0002684593200683594, 'average_duration': 0.00038123130798339844}, 'success': True}
(base) cybertimon@server:~/Repositorys/CT AI Vicuna$

System Info

2x3060 12gb
i5 13600kf
64gb

CyberTimon avatar Apr 21 '23 11:04 CyberTimon

I am also getting this error. It makes using the webui very frustrating. Sometimes it works after I restart the UI and refresh the page, but it is inconsistent. When I finally get it working, it might fail on the next prompt or the one after, too. I am using the cpu only.

mashdragon avatar Apr 23 '23 03:04 mashdragon

Closing this as it is fixed with the new api

CyberTimon avatar Apr 24 '23 10:04 CyberTimon