Zai-Kun / reverse-engineered-chatgpt

Unofficial reverse-engineered ChatGPT API in Python
Apache License 2.0
240 stars 31 forks source link

Consider implmenting return after finished? #28

Closed brizzbane closed 5 months ago

brizzbane commented 6 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 5 months ago

You can just do this:

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