Skip to content

Commit

Permalink
Merge pull request #1598 from Agenta-AI/issue-1596/-fix-python-code-s…
Browse files Browse the repository at this point in the history
…nippet

Fixed fetch config Python code snippet
  • Loading branch information
mmabrouk authored May 2, 2024
2 parents 95d8408 + 12e74d9 commit f1ceeec
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 f1ceeec

Please sign in to comment.