diff options
Diffstat (limited to 'autogpt/core/runner/cli_web_app/client/client.py')
-rw-r--r-- | autogpt/core/runner/cli_web_app/client/client.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/autogpt/core/runner/cli_web_app/client/client.py b/autogpt/core/runner/cli_web_app/client/client.py deleted file mode 100644 index 346203f7c..000000000 --- a/autogpt/core/runner/cli_web_app/client/client.py +++ /dev/null @@ -1,16 +0,0 @@ -import json - -import requests - - -def run(): - body = json.dumps( - {"ai_name": "HelloBot", "ai_role": "test", "ai_goals": ["goal1", "goal2"]} - ) - - header = {"Content-Type": "application/json", "openai_api_key": "asdf"} - print("Sending: ", header, body) - response = requests.post( - "http://localhost:8080/api/v1/agents", data=body, headers=header - ) - print(response.content.decode("utf-8")) |