mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-22 08:24:26 +01:00
Feature/basic proxy (#4164)
* basic proxy (#54) * basic proxy (#55) * basic proxy * basic proxy * basic proxy * basic proxy * add back double quotes * add more specific files * write file * basic proxy * Put back double quotes
This commit is contained in:
@@ -13,7 +13,7 @@ from tests.utils import requires_api_key
|
||||
|
||||
@pytest.mark.vcr
|
||||
@requires_api_key("OPENAI_API_KEY")
|
||||
def test_generate_aiconfig_automatic_default():
|
||||
def test_generate_aiconfig_automatic_default(patched_api_requestor):
|
||||
user_inputs = [""]
|
||||
with patch("builtins.input", side_effect=user_inputs):
|
||||
ai_config = prompt_user()
|
||||
@@ -26,7 +26,7 @@ def test_generate_aiconfig_automatic_default():
|
||||
|
||||
@pytest.mark.vcr
|
||||
@requires_api_key("OPENAI_API_KEY")
|
||||
def test_generate_aiconfig_automatic_typical():
|
||||
def test_generate_aiconfig_automatic_typical(patched_api_requestor):
|
||||
user_prompt = "Help me create a rock opera about cybernetic giraffes"
|
||||
ai_config = generate_aiconfig_automatic(user_prompt)
|
||||
|
||||
@@ -38,7 +38,7 @@ def test_generate_aiconfig_automatic_typical():
|
||||
|
||||
@pytest.mark.vcr
|
||||
@requires_api_key("OPENAI_API_KEY")
|
||||
def test_generate_aiconfig_automatic_fallback():
|
||||
def test_generate_aiconfig_automatic_fallback(patched_api_requestor):
|
||||
user_inputs = [
|
||||
"T&GF£OIBECC()!*",
|
||||
"Chef-GPT",
|
||||
@@ -59,7 +59,7 @@ def test_generate_aiconfig_automatic_fallback():
|
||||
|
||||
@pytest.mark.vcr
|
||||
@requires_api_key("OPENAI_API_KEY")
|
||||
def test_prompt_user_manual_mode():
|
||||
def test_prompt_user_manual_mode(patched_api_requestor):
|
||||
user_inputs = [
|
||||
"--manual",
|
||||
"Chef-GPT",
|
||||
|
||||
Reference in New Issue
Block a user