feat(ui): for adding pass-through endpoints

This commit is contained in:
Krrish Dholakia 2024-08-15 21:58:11 -07:00
parent 589da45c24
commit 6fc6df134f
9 changed files with 613 additions and 9 deletions

View file

@ -9473,11 +9473,10 @@ async def get_config_list(
typed_dict_type = allowed_args[field_name]["type"]
if typed_dict_type == "PydanticModel":
pydantic_class_list: Optional[Any] = _resolve_pydantic_type(
field_info.annotation
)
if pydantic_class_list is None:
continue
if field_name == "pass_through_endpoints":
pydantic_class_list = [PassThroughGenericEndpoint]
else:
pydantic_class_list = []
for pydantic_class in pydantic_class_list:
# Get type hints from the TypedDict to create FieldDetail objects