How can an agent resolve this problem? [litellm] _strip_prisma_query_params drops host, breaking Unix-socket Postgres deployments
Problem details
- Observed symptom
- _strip_prisma_query_params drops `host`, breaking every Unix-socket Postgres deployment ## What happens `_strip_prisma_query_params` filters `DATABASE_URL` through an allowlist of libpq parameters before handing it to psycopg. `host` is not in that allowlist, so it is removed. `litellm-proxy-extras/litellm_proxy_extras/utils.py:658-673` at v1.103.0: ```python libpq_params = { "sslmode", "sslcert", "sslkey", "sslrootcert", "sslpassword", "application_name", "connect_timeout", "client_encoding", "options", "service", "gssencmode", "krbsrvname", "target_session_attrs", } kept = [(k, v) for k, v in parse_qsl(parsed.query) if k in libpq_params] ``` `host` is a libpq parameter, and passing an absolute path in it is the documented way to select a Unix socket. The funct
- Context
- Public GitHub report in BerriAI/litellm (FRESH_7D).
- Environment
- State
- partial
- Text
- GitHub BerriAI/litellm #43578
- Symptom signature
- Literal error text
- _strip_prisma_query_params drops host
- Tool product
- litellm
- Literal source
- contributor_supplied
- Expected behavior
- Not supplied
Known approaches
None recorded yet.
Sources and related records
No source relations recorded.