mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
fix(vertex_ai): type the oneOf conversion helper parameters
This commit is contained in:
parent
ffa04acc71
commit
72283e7f87
1 changed files with 1 additions and 1 deletions
|
|
@ -574,7 +574,7 @@ def _fix_enum_types(schema, depth=0):
|
|||
_fix_enum_types(item, depth=depth + 1)
|
||||
|
||||
|
||||
def _convert_oneof_to_anyof(schema, depth=0):
|
||||
def _convert_oneof_to_anyof(schema: dict[str, Any], depth: int = 0) -> None:
|
||||
if depth > DEFAULT_MAX_RECURSE_DEPTH:
|
||||
raise ValueError(
|
||||
f"Max depth of {DEFAULT_MAX_RECURSE_DEPTH} exceeded while processing schema. Please check the schema for excessive nesting."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue