mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
fix(ci): fix remaining CI failures on main
- tests/test_utils.py: add supports_none_reasoning_effort and supports_xhigh_reasoning_effort to INTENDED_SCHEMA so test_aaamodel_prices_and_context_window_json_is_valid passes - tests/test_azure_gpt5_transformation.py: fix temperature=0.6 → 1 (gpt-5.1 only accepts temperature=1 unconditionally) - migrations: add 20260306000000_readd_spec_path_to_mcp_servers to re-add spec_path column dropped in 20260224 but still in schema.prisma - litellm/llms/searchapi/search/transformation.py: cast result_data["q"] to str to fix mypy arg-type error - litellm/proxy/auth/handle_jwt.py: initialize litellm_jwtauth with default LiteLLM_JWTAuth() in __init__ to fix AttributeError when jwt_handler.update_environment() has not been called Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4514c1a16d
commit
9df6860ab8
5 changed files with 11 additions and 3 deletions
|
|
@ -0,0 +1,5 @@
|
|||
-- Re-add spec_path column to LiteLLM_MCPServerTable
|
||||
-- (was dropped in 20260224203854_add_agent_object_permissions_table, now re-added to schema)
|
||||
|
||||
ALTER TABLE "LiteLLM_MCPServerTable"
|
||||
ADD COLUMN IF NOT EXISTS "spec_path" TEXT;
|
||||
|
|
@ -159,7 +159,7 @@ class SearchAPIConfig(BaseSearchConfig):
|
|||
domains = optional_params["search_domain_filter"]
|
||||
if isinstance(domains, list) and len(domains) > 0:
|
||||
result_data["q"] = self._append_domain_filters(
|
||||
result_data["q"], domains
|
||||
cast(str, result_data["q"]), domains
|
||||
)
|
||||
|
||||
if "country" in optional_params:
|
||||
|
|
|
|||
|
|
@ -75,6 +75,7 @@ class JWTHandler:
|
|||
) -> None:
|
||||
self.http_handler = HTTPHandler()
|
||||
self.leeway = 0
|
||||
self.litellm_jwtauth = LiteLLM_JWTAuth()
|
||||
|
||||
def update_environment(
|
||||
self,
|
||||
|
|
|
|||
|
|
@ -183,13 +183,13 @@ def test_azure_gpt5_1_temperature_with_reasoning_effort_other_values(config: Azu
|
|||
def test_azure_gpt5_1_series_temperature_handling(config: AzureOpenAIGPT5Config):
|
||||
"""Test that Azure GPT-5.1 with gpt5_series prefix supports temperature with reasoning_effort='none'."""
|
||||
params = config.map_openai_params(
|
||||
non_default_params={"temperature": 0.6},
|
||||
non_default_params={"temperature": 1},
|
||||
optional_params={},
|
||||
model="gpt5_series/gpt-5.1",
|
||||
drop_params=False,
|
||||
api_version="2024-05-01-preview",
|
||||
)
|
||||
assert params["temperature"] == 0.6
|
||||
assert params["temperature"] == 1
|
||||
|
||||
|
||||
def test_azure_gpt5_reasoning_effort_none_error(config: AzureOpenAIGPT5Config):
|
||||
|
|
|
|||
|
|
@ -794,6 +794,8 @@ def test_aaamodel_prices_and_context_window_json_is_valid():
|
|||
},
|
||||
},
|
||||
"supports_native_streaming": {"type": "boolean"},
|
||||
"supports_none_reasoning_effort": {"type": "boolean"},
|
||||
"supports_xhigh_reasoning_effort": {"type": "boolean"},
|
||||
"tiered_pricing": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue