Feature #3580
FE Support for conversation and prompts
Start date:
06/02/2024
Due date:
% Done:
100%
Estimated time:
0.50 h
Description
call_openai_api has changed to call_openai_api(model, index, thread_id, new_chat) [See http://34.67.50.25/issues/3579].
Add parameters 'model' and 'index' to chat interface div. So, this will be provided by the page author.
When you make the first call_openai_api call, thread_id will be empty string ("").
The call will return thread_id. Use this thread_id in future requests.
new_chat should be true when user goes to a page and/or whenever user clicks on 'New Chat'. Else, new_chat should be false.