realcoloride/node_characterai

response?

Closed this issue · 5 comments

I am trying to return the response from the ai to use in my python environment, however no matter what I try it only returns this:
image
I can see the ai responding in the java terminal and in the website though. here are my codes:
image
image

you're aware that response is the Reply class correct?

now I do, but I'm still a beginner. I was stuck because the response wouldn't show up in my python environment unless I killed the process. It's a different project so I shouldn't have asked, but I fixed it for myself by turning it into a function and then writing a file for the response
image

if your intent is to return text, use response.text

I tried before that but it didn't work! actually my issue is resolved now! the code i posted was the solution that worked, so this thread can be closed now. my intent was to pass the response into a python code, sorry

ok all good have a nice day!