Skip to content

Latest commit

 

History

History
133 lines (81 loc) · 1.88 KB

V1.md

File metadata and controls

133 lines (81 loc) · 1.88 KB

revChatGPT.Unofficial

Chatbot Objects

class Chatbot()

ask

def ask(prompt,
        conversation_id=None,
        parent_id=None,
        gen_title=False,
        session_token=None)

Ask a question to the chatbot

Arguments:

  • prompt: String
  • conversation_id: UUID
  • parent_id: UUID
  • gen_title: Boolean
  • session_token: String

get_conversations

def get_conversations(offset=0, limit=20)

Get conversations

Arguments:

  • offset: Integer
  • limit: Integer

get_msg_history

def get_msg_history(id)

Get message history

Arguments:

  • id: UUID of conversation

change_title

def change_title(id, title)

Change title of conversation

Arguments:

  • id: UUID of conversation
  • title: String

delete_conversation

def delete_conversation(id)

Delete conversation

Arguments:

  • id: UUID of conversation

clear_conversations

def clear_conversations()

Delete all conversations

reset_chat

def reset_chat() -> None

Reset the conversation ID and parent ID.

Returns:

None

rollback_conversation

def rollback_conversation(num=1) -> None

Rollback the conversation.

Arguments:

  • num: The number of messages to rollback

Returns:

None