Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Removed test scripts

SwiftyOS6ae60371f054
diff --git a/test_artifacts.py b/test_artifacts.py
deleted file mode 100644
index dcc13b0c98..0000000000
--- a/test_artifacts.py
+++ /dev/null
@@ -1,44 +0,0 @@
-import json
-
-import requests
-
-# Define the base URL of the API
-base_url = "http://localhost:8000" # Replace with your actual API base URL
-
-# Create a new task
-task_request = {
- "input": "Write the words you receive to the file 'output.txt'.",
- "additional_input": {"type": "python/code"},
-}
-response = requests.post(f"{base_url}/agent/tasks", json=task_request)
-task = response.json()
-print(f"Created task: {task}")
-
-# Upload a file as an artifact for the task
-task_id = task["task_id"]
-test_file_content = "This is a test file for testing."
-relative_path = "./relative/path/to/your/file" # Add your relative path here
-file_path = "test_file.txt"
-with open(file_path, "w") as f:
- f.write(test_file_content)
-with open(file_path, "rb") as f:
- files = {"file": f}
- data = {"relative_path": relative_path}
-
- response = requests.post(
- f"{base_url}/agent/tasks/{task_id}/artifacts?relative_path={relative_path}",
- files=files,
- )
- artifact = response.json()
-
-print(f"Uploaded artifact: {response.text}")
-
-# Download the artifact
-artifact_id = artifact["artifact_id"]
-response = requests.get(f"{base_url}/agent/tasks/{task_id}/artifacts/{artifact_id}")
-if response.status_code == 200:
- with open("downloaded_file.txt", "wb") as f:
- f.write(response.content)
- print("Downloaded artifact.")
-else:
- print(f"Error downloading artifact: {response.content}")
diff --git a/test_local_llm.py b/test_local_llm.py
deleted file mode 100644
index e1c250e1f1..0000000000
--- a/test_local_llm.py
+++ /dev/null
@@ -1,23 +0,0 @@
-import openai
-
-openai.api_base = "http://localhost:4891/v1"
-
-openai.api_key = "not needed for a local LLM"
-
-
-model = "ggml-llama-2-13b-chat.ggmlv3.q4_0.bin"
-prompt = "Who is Michael Jordan?"
-response = openai.Completion.create(
- model=model,
- prompt=prompt,
- max_tokens=50,
- temperature=0.28,
- top_p=0.95,
- n=1,
- echo=True,
- stream=False,
-)
-assert len(response["choices"][0]["text"]) > len(prompt)
-print(f"Model: {response['model']}")
-print(f"Usage: {response['usage']}")
-print(f"Answer: {response['choices'][0]['text']}")