Chat-With-RTX-python-api icon indicating copy to clipboard operation
Chat-With-RTX-python-api copied to clipboard

Requests return status OK but no answer is provided (version 4 24).

Open gustavozantut opened this issue 1 year ago • 5 comments
trafficstars

I am trying to reach ChatRTX via python on top of Docker, i can get status 200 from bot POST and GET requests, but GET returns empty:

image

So i tried doing request manually via POSTCode.

POST:

image

GET:

image

no message returns on GET. get_result.txt

Am i doing something wrong?

Edit:

the code: code.txt

gustavozantut avatar May 06 '24 16:05 gustavozantut

maybe https to url http://host.docker.internal ?

vossr avatar May 06 '24 19:05 vossr

maybe https to url http://host.docker.internal ?

Even on postcode(outside docker) it returns empty(look at post and get requests on prints) , but te request is received and processed with status ok, but get returns empty, in or outside docker.

gustavozantut avatar May 06 '24 19:05 gustavozantut

maybe you have some different version,
in browser second to last post request has the fn_index
join_queue(session_hash, 100, port, chatdata)

image

vossr avatar May 06 '24 21:05 vossr

mine looks exatcly the same... image

gustavozantut avatar May 06 '24 22:05 gustavozantut

I'm having the same problem. Response [200] for Listen and Join. Nothing returned. 0 tokens. I'm not using Docker. Just default 4_24 install trying to reach it with python on local.

GnatGoSplat avatar May 09 '24 15:05 GnatGoSplat

The issue persists as previously mentioned (@GnatGoSplat); no results were obtained.

Kepilif avatar May 15 '24 10:05 Kepilif

i was taking a look at the code and it seems that the chat is not doing simple get and post requests on 4.24, it's using generators and yeld

gustavozantut avatar May 15 '24 10:05 gustavozantut

Automatically find the stream completion function https://github.com/rpehkone/Chat-With-RTX-python-api/blob/master/rtx_api_4_24.py#L90 Should work, wasn't able to reproduce the issue.

vossr avatar May 19 '24 11:05 vossr

working, lov u

gustavozantut avatar May 19 '24 13:05 gustavozantut

Thanks, the fix is working for me. It's causing a bunch of errors in the ChatRTX Powershell window, but they seem inconsequential.

GnatGoSplat avatar May 19 '24 16:05 GnatGoSplat