(fix) dict changed size during iteration

This commit is contained in:
ishaan-jaff 2024-03-06 17:53:01 -08:00
parent 32adb4e80d
commit d3818713ad

View file

@ -1127,7 +1127,7 @@ class Logging:
self.model_call_details["cache_hit"] = cache_hit self.model_call_details["cache_hit"] = cache_hit
## if model in model cost map - log the response cost ## if model in model cost map - log the response cost
## else set cost to None ## else set cost to None
verbose_logger.debug(f"Model={self.model}; result={result}") verbose_logger.debug(f"Model={self.model};")
if ( if (
result is not None result is not None
and ( and (