litellm/tests/unit/llms/databricks
owen-hj ea82857967
fix(bedrock,databricks): forward the server-side-fallback beta and drop it under drop_params where the model lacks it (#53857)
* fix(bedrock): forward server-side-fallback-2026-06-01 on Bedrock Invoke and Mantle

Bedrock Invoke and Bedrock Mantle accept server-side-fallback-2026-06-01, which a fallback content block in the message history needs. The bedrock and bedrock_mantle beta columns did not list it, so the proxy dropped it and /v1/messages answered 400 on a fallback-block history

Both columns now forward the 2026-06-01 beta and drop server-side-fallback-2026-07-01, which both platforms reject. The compiled Rust column matches the JSON

* fix(bedrock,databricks): forward the fallback beta on Databricks and drop it under drop_params where the model lacks it

Databricks Claude needs server-side-fallback-2026-06-01 for a fallback-block history, the same as Bedrock Invoke
and Mantle, so its column forwards the June beta and nulls July

Opus 4.1 rejects the June beta with 400 invalid beta flag. A supports_server_side_fallback capability, resolved from
a claude-server-side-fallback cost-map rule (Claude 4.5 and newer) or the deployment's model_info, lets drop_params
drop the beta for a model that lacks it on Bedrock Invoke, Mantle and Databricks, in Python and Rust. Without
drop_params the beta still goes through and the provider answers its own 400

* fix(bedrock,databricks): name the model_info override in the server-side-fallback beta drop warning

* fix(bedrock): read base_model for an application inference profile ARN in the server-side-fallback beta check

The drop of server-side-fallback-2026-06-01 under drop_params looked up only the model name, so an application
inference profile ARN, which names no model, always counted as unsupported. The check now resolves the deployment's
base_model for such an ARN, the same way the other Bedrock capability lookups do, in Python and in the Rust Invoke path

---------

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
2026-11-24 03:09:16 +00:00
..
agent feat(agents): support Databricks Agent Platform agents in the agent gateway (#45681) 2026-10-15 12:42:06 -07:00
chat fix(mcp): drop hosted MCP tool_choice under drop_params and honor drop_params in Bedrock batch rows (#53697) 2026-11-23 08:51:59 -08:00
decisions fix(databricks): reuse base OAuth for decisions (#48395) (#48527) 2026-10-26 20:18:16 -07:00
messages fix(bedrock,databricks): forward the server-side-fallback beta and drop it under drop_params where the model lacks it (#53857) 2026-11-24 03:09:16 +00:00
responses
__init__.py
test_databricks_common_utils.py fix(databricks): reuse base OAuth for decisions (#48395) (#48527) 2026-10-26 20:18:16 -07:00
test_databricks_cost_calculator.py chore(model_prices): sync databricks gemini-4-carbon and gemini-4-hydrogen prices (#52986) 2026-11-19 18:05:11 -08:00
test_databricks_partner_integration.py feat(agents): support Databricks Agent Platform agents in the agent gateway (#45681) 2026-10-15 12:42:06 -07:00
test_databricks_streaming_utils.py fix(vertex_ai): route Model Garden models through the generateContent adapter (#41836) 2026-10-15 08:06:49 -07:00