From 12e74d914e0cc1510fcd244cbe975584752daf8b Mon Sep 17 00:00:00 2001 From: Kaosiso Ezealigo Date: Thu, 2 May 2024 09:01:57 +0100 Subject: [PATCH] fixed fetch config python code snippet --- .../src/code_snippets/endpoints/fetch_config/python.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agenta-web/src/code_snippets/endpoints/fetch_config/python.ts b/agenta-web/src/code_snippets/endpoints/fetch_config/python.ts index 48a6d5ef9a..1fbb904e33 100644 --- a/agenta-web/src/code_snippets/endpoints/fetch_config/python.ts +++ b/agenta-web/src/code_snippets/endpoints/fetch_config/python.ts @@ -1,12 +1,12 @@ export default function pythonCode(baseId: string, env_name: string): string { return ` # os.environ["AGENTA_API_KEY"] = "your_api_key" # Only when using cloud - # os.environ["HOST"] = "https://cloud.agenta.ai" + # os.environ["AGENTA_HOST"] = "https://cloud.agenta.ai" from agenta import Agenta ag = Agenta() ag.get_config(base_id="${baseId}", - environment="${env_name}", - cache_timeout=600) # timeout 300 per default + environment="${env_name}", + cache_timeout=600) # timeout 300 per default ` }