mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
Fix cicd tests
This commit is contained in:
parent
c49ef4d28f
commit
5ec1b47742
2 changed files with 7 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ def _resolve_os_environ_refs(config: dict) -> dict:
|
|||
if isinstance(value, dict):
|
||||
config[key] = _resolve_os_environ_refs(value)
|
||||
elif isinstance(value, list):
|
||||
resolved_list = []
|
||||
resolved_list: list[Any] = []
|
||||
for item in value:
|
||||
if isinstance(item, dict):
|
||||
resolved_list.append(_resolve_os_environ_refs(item))
|
||||
|
|
@ -814,6 +814,11 @@ def run_server( # noqa: PLR0915
|
|||
max_requests_before_restart,
|
||||
enforce_prisma_migration_check: bool,
|
||||
):
|
||||
if isinstance(config, str):
|
||||
stripped_config = config.strip()
|
||||
if stripped_config == "" or stripped_config.lower() == "none":
|
||||
config = None
|
||||
|
||||
if setup:
|
||||
from litellm.setup_wizard import run_setup_wizard
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ IGNORE_FUNCTIONS = [
|
|||
"filter_schema_fields",
|
||||
"text_completion",
|
||||
"_check_for_os_environ_vars",
|
||||
"_resolve_os_environ_refs", # bounded by YAML general_settings nesting (dict/list walk only).
|
||||
"clean_message",
|
||||
"unpack_defs",
|
||||
"convert_anyof_null_to_nullable", # has a set max depth
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue