Skip to content

Commit 946240b

Browse files
authored
docs: fix get_prompt fetch_timeout_seconds unit (#2100)
The docstring said milliseconds, but the value is passed to the API client as timeout_in_seconds.
1 parent 4beb5a6 commit 946240b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎langfuse/_client/client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3808,7 +3808,7 @@ def get_prompt(
38083808
type: Literal["chat", "text"]: The type of the prompt to retrieve. Defaults to "text".
38093809
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.
38103810
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.
3811-
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.
3811+
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.
38123812
38133813
Returns:
38143814
The prompt object retrieved from the cache or directly fetched if not cached or expired of type

0 commit comments

Comments
 (0)