Skip to content

[Bug]: session id and guardrails are not used via bedrock pass through mechanism #17477

@mallapraveen

Description

@mallapraveen

What happened?

How do we set the session_id via bedrock pass through mechanism? Below is how I invoke it

Proxy_endpoint = "http://localhost:4000/bedrock"

Client = session.client()
Model_id = ""
Response = client.converse(model_id, messages)

Via making this call, the below guardrails are not used.
guardrails:

  • guardrail_name: "presidio-pii-guard"
    litellm_params:
    guardrail: presidio
    mode: "pre_call" # Run before LLM call
    pii_entities_config:
    CREDIT_CARD: "MASK"
    EMAIL_ADDRESS: "MASK"
    PHONE_NUMBER: "MASK"
    PERSON: "MASK"
    US_SSN: "MASK"

How do we enable usage of session_id and guardrails for pass through mechanism for bedrock?

Relevant log output

Are you a ML Ops Team?

No

What LiteLLM version are you on ?

1.80.7

Twitter / LinkedIn details

https://www.linkedin.com/in/mallapraveen/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions