adamrushy / OpenAISwift

This is a wrapper library around the ChatGPT and OpenAI HTTP API
MIT License
1.6k stars 242 forks source link

not aware of the previous conversations #38

Closed moonknightskye closed 1 year ago

moonknightskye commented 1 year ago

first of all im very impressed how easy this library to use! I have implemented this to my app in less than an hour! thank you so much for spending hundreds of hours to make this awesome!

i am new to this section and please delete if this is not the place to ask this but i am curious why the chats are not "remembered". if i ask a question then follow it with another question after, it never remembers even my previous message. is this feature will be supported here? or this is something not a concern at all?

bogdanf commented 1 year ago

The short answer is: You have to use the new 'chat' endpoint and provide the history of the conversation with each and every new request.

adamrushy commented 1 year ago

Yes, exactly what @bogdanf said.

We don't provide any persistence layer within the framework and would be required from your client integration to handle this. Thank you!