forked from phoenix/litellm-mirror
fix mock_completion
This commit is contained in:
parent
47538135cf
commit
3ecc077507
1 changed files with 7 additions and 5 deletions
|
@ -475,11 +475,13 @@ def mock_completion(
|
||||||
except Exception:
|
except Exception:
|
||||||
# dont let setting a hidden param block a mock_respose
|
# dont let setting a hidden param block a mock_respose
|
||||||
pass
|
pass
|
||||||
logging.post_call(
|
|
||||||
input=messages,
|
if logging is not None:
|
||||||
api_key="my-secret-key",
|
logging.post_call(
|
||||||
original_response="my-original-response",
|
input=messages,
|
||||||
)
|
api_key="my-secret-key",
|
||||||
|
original_response="my-original-response",
|
||||||
|
)
|
||||||
return model_response
|
return model_response
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue