You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resolve_with: The representation of the media content to replace the media reference string with.
1858
1861
Currently only "base64_data_uri" is supported.
1859
1862
max_depth: int: The maximum depth to traverse the object. Default is 10.
1860
-
content_fetch_timeout_seconds: int: The timeout in seconds for fetching media content. Default is 10.
1863
+
content_fetch_timeout_seconds: int: The timeout in seconds for fetching media content. Default is 5.
1861
1864
1862
1865
Returns:
1863
1866
A deep copy of the input object with all media references replaced with base64 data URIs where possible.
@@ -1947,7 +1950,7 @@ def get_prompt(
1947
1950
type: Literal["chat", "text"]: The type of the prompt to retrieve. Defaults to "text".
1948
1951
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.
1949
1952
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.
1950
-
fetch_timeout_seconds: Optional[int]: The timeout in milliseconds for fetching the prompt. Defaults to the default timeout set on the SDK, which is 10 seconds per default.
1953
+
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.
1951
1954
1952
1955
Returns:
1953
1956
The prompt object retrieved from the cache or directly fetched if not cached or expired of type
0 commit comments