From 37e20e219ff9f475c0df2585733f794e894f2582 Mon Sep 17 00:00:00 2001 From: Caio Theodoro <48462974+caiotheodoro@users.noreply.github.com> Date: Sun, 1 Nov 2026 10:06:36 -0500 Subject: [PATCH] docs(prompts): fix fetch_timeout_seconds unit in get_prompt docstring The argument is passed to the API client as timeout_in_seconds and is applied as an httpx timeout in seconds, but the docstring said milliseconds. --- langfuse/_client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langfuse/_client/client.py b/langfuse/_client/client.py index 63489e8fb..ffef23fea 100644 --- a/langfuse/_client/client.py +++ b/langfuse/_client/client.py @@ -3773,7 +3773,7 @@ def get_prompt( type: Literal["chat", "text"]: The type of the prompt to retrieve. Defaults to "text". fallback: Union[Optional[List[ChatMessageDict]], Optional[str]]: The prompt string to return if fetching the prompt fails. Important on the first call where no cached prompt is available. Follows Langfuse prompt formatting with double curly braces for variables. Defaults to None. max_retries: Optional[int]: The maximum number of retries in case of API/network errors. Defaults to 2. The maximum value is 4. Retries have an exponential backoff with a maximum delay of 10 seconds. - fetch_timeout_seconds: Optional[int]: The timeout in milliseconds for fetching the prompt. Defaults to the default timeout set on the SDK, which is 5 seconds per default. + fetch_timeout_seconds: Optional[int]: The timeout in seconds for fetching the prompt. Defaults to the default timeout set on the SDK, which is 5 seconds per default. Returns: The prompt object retrieved from the cache or directly fetched if not cached or expired of type