top | item 34257273

Conversation history using OpenAI API

2 points| broooder | 3 years ago |heyrobot.org

1 comment

order

broooder|3 years ago

I was messing around with the Open AI Api today, embedding the conversation history in the request to OpenAI, so that text-davinci-003 can be aware of conversation context like chatGPT.

Something like: request_open_ai = "Previously we have said: #{@old_history_joined}. #{@prompt}"