Zai-Kun / reverse-engineered-chatgpt

Unofficial reverse-engineered ChatGPT API in Python
Apache License 2.0
258 stars 35 forks source link

Consider implmenting return after finished? #28

Closed brizzbane closed 8 months ago

brizzbane commented 9 months ago

I'd like the response to be a variable that I can use instead of streaming. Is there a way to do this currently, or would you consider implementing?

thank you!

Zai-Kun commented 8 months ago

You can just do this:

    full_message = ""
    for message_chunk in conversation.chat(prompt):
        full_message += message_chunk