vossr / Chat-With-RTX-python-api

Chat With RTX Python API
58 stars 10 forks source link

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

Closed gustavozantut closed 6 months ago

gustavozantut commented 6 months ago

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

vossr commented 6 months ago

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

gustavozantut commented 6 months ago

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.

vossr commented 6 months ago

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

gustavozantut commented 6 months ago

mine looks exatcly the same... image

GnatGoSplat commented 6 months ago

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.

Kepilif commented 6 months ago

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

gustavozantut commented 6 months ago

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

vossr commented 6 months ago

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.

gustavozantut commented 6 months ago

working, lov u

GnatGoSplat commented 6 months ago

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