diff --git a/openbb_sdk/sdk/core/openbb_core/app/provider_interface.py b/openbb_sdk/sdk/core/openbb_core/app/provider_interface.py index 0b22f6160bb..42049eb387a 100644 --- a/openbb_sdk/sdk/core/openbb_core/app/provider_interface.py +++ b/openbb_sdk/sdk/core/openbb_core/app/provider_interface.py @@ -435,16 +435,12 @@ class ProviderInterface: class Config(BaseConfig): extra = Extra.allow - ReturnModel = create_model( # type: ignore + result[model_name] = create_model( # type: ignore model_name, __config__=Config, **fields_dict, # type: ignore ) - # TODO: If we want to support multiple return schemas, we need - # to change this `List` to the schema type - result[model_name] = List[ReturnModel] # type: ignore - return result def _get_provider_literal(self, available_providers: List[str]) -> type: