Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

docs(README): fix chatbot code calls #13

Merged
merged 1 commit into from
Dec 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ config = {

chatbot = Chatbot(config, conversation_id=None)
chatbot.reset_chat() # Forgets conversation
refresh_session() # Uses the session_token to get a new bearer token
resp = get_chat_response(prompt) # Sends a request to the API and returns the response by OpenAI
chatbot.refresh_session() # Uses the session_token to get a new bearer token
resp = chatbot.get_chat_response(prompt) # Sends a request to the API and returns the response by OpenAI
resp['message'] # The message sent by the response
resp['conversation_id'] # The current conversation id
resp['parent_id'] # The ID of the response
Expand Down