mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
Merge pull request #4729 from vingiarrusso/vgiarrusso/guardrails
Add enabled_roles to Guardrails configuration, Update Lakera guardrail moderation hook
This commit is contained in:
commit
57f6923ab6
5 changed files with 185 additions and 28 deletions
|
@ -4319,7 +4319,6 @@ def get_formatted_prompt(
|
|||
prompt = data["prompt"]
|
||||
return prompt
|
||||
|
||||
|
||||
def get_response_string(response_obj: ModelResponse) -> str:
|
||||
_choices: List[Union[Choices, StreamingChoices]] = response_obj.choices
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue