Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(prometheus - minor bug fix) - litellm_llm_api_time_to_first_token_metric not populating for bedrock models #7740

Merged
merged 7 commits into from
Jan 14, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix _set_latency_metrics
  • Loading branch information
ishaan-jaff committed Jan 13, 2025
commit 83b5fb362c0808ce76a336d10cbbc3c7bddfec11
2 changes: 1 addition & 1 deletion litellm/integrations/prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def _set_latency_metrics(
if (
completion_start_time is not None
and isinstance(completion_start_time, datetime)
and kwargs.get("stream") is True is True # only emit for streaming requests
and kwargs.get("stream", False) is True # only emit for streaming requests
):
time_to_first_token_seconds = (
completion_start_time - api_call_start_time
Expand Down
Loading