Skip to content

Commit

Permalink
fixed fetch config python code snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
bekossy committed May 2, 2024
1 parent 95d8408 commit 12e74d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions agenta-web/src/code_snippets/endpoints/fetch_config/python.ts
Original file line number Diff line number Diff line change
@@ -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
`
}

0 comments on commit 12e74d9

Please sign in to comment.