Feature #3580
Updated by Ram Kordale 6 months ago
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 and whenever user clicks on 'New Chat'. Else, new_chat should be false.