forked from phoenix/litellm-mirror
fix(proxy/utils.py): support logging rejected requests to langfuse, etc.
This commit is contained in:
parent
d528b66db0
commit
b1b21b0340
4 changed files with 36 additions and 52 deletions
|
@ -153,11 +153,6 @@ class Logging:
|
|||
langfuse_secret=None,
|
||||
langfuse_host=None,
|
||||
):
|
||||
if call_type not in [item.value for item in CallTypes]:
|
||||
allowed_values = ", ".join([item.value for item in CallTypes])
|
||||
raise ValueError(
|
||||
f"Invalid call_type {call_type}. Allowed values: {allowed_values}"
|
||||
)
|
||||
if messages is not None:
|
||||
if isinstance(messages, str):
|
||||
messages = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue