Troubleshooting and FAQ
Error handling and timeouts
Optionally, you can configure retry behavior and timeout settings. The defaults are usually sufficient.
# Number of retries on fetching prompts from the server. Default is 2.
prompt = langfuse.get_prompt("movie-critic", max_retries=3)
# Timeout per call to the Langfuse API in seconds. Default is 20.
prompt = langfuse.get_prompt("movie-critic", fetch_timeout_seconds=3)
FAQ
GitHub Discussions
Was this page helpful?