mirror of
https://github.com/weyne85/PentestGPT.git
synced 2025-10-29 16:58:59 +00:00
feat: 🎸 Update playwright for interface consistency
Now the playwright version has the same interface as the API version.
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
from chatgpt_wrapper import ChatGPT
|
||||
|
||||
from llm_handle.parser import extract_cmd
|
||||
from task_handle.cmd_execution import execute_cmd
|
||||
import os
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
bot = ChatGPT()
|
||||
conversations = bot.get_history()
|
||||
print(conversations)
|
||||
# structure of conversation:
|
||||
# {conversation_id (str): {'id': conversation_id, 'title': conversation_title, 'create_time': conversation_create_time'}}
|
||||
|
||||
@@ -17,5 +19,5 @@ if __name__ == "__main__":
|
||||
|
||||
## Try to ask a question in this conversation
|
||||
question = "What is the meaning of life?"
|
||||
success, response, message = bot.ask("Hello, world!")
|
||||
response = bot.ask("Hello, world!")
|
||||
print(response)
|
||||
|
||||
Reference in New Issue
Block a user