fix allow setting language per call to presidio

This commit is contained in:
Ishaan Jaff 2024-09-04 12:46:59 -07:00
parent d954413b14
commit 9b5164b38d
2 changed files with 60 additions and 14 deletions

View file

@ -420,6 +420,10 @@ def move_guardrails_to_metadata(
data[_metadata_variable_name]["guardrails"] = data["guardrails"]
del data["guardrails"]
if "guardrail_config" in data:
data[_metadata_variable_name]["guardrail_config"] = data["guardrail_config"]
del data["guardrail_config"]
def add_provider_specific_headers_to_request(
data: dict,