mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
Merge pull request #1344 from BerriAI/litellm_speed_improvements
Litellm speed improvements
This commit is contained in:
commit
439ee3bafc
7 changed files with 46 additions and 82 deletions
|
@ -956,6 +956,8 @@ class Logging:
|
|||
):
|
||||
# Log the exact result from the LLM API, for streaming - log the type of response received
|
||||
litellm.error_logs["POST_CALL"] = locals()
|
||||
if isinstance(original_response, dict):
|
||||
original_response = json.dumps(original_response)
|
||||
try:
|
||||
self.model_call_details["input"] = input
|
||||
self.model_call_details["api_key"] = api_key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue