diff --git a/openhands/integrations/provider.py b/openhands/integrations/provider.py index d0551805e1..7639919c66 100644 --- a/openhands/integrations/provider.py +++ b/openhands/integrations/provider.py @@ -60,6 +60,10 @@ PROVIDER_TOKEN_TYPE_WITH_JSON_SCHEMA = Annotated[ PROVIDER_TOKEN_TYPE, WithJsonSchema({'type': 'object', 'additionalProperties': {'type': 'string'}}), ] +CUSTOM_SECRETS_TYPE_WITH_JSON_SCHEMA = Annotated[ + CUSTOM_SECRETS_TYPE, + WithJsonSchema({'type': 'object', 'additionalProperties': {'type': 'string'}}), +] class SecretStore(BaseModel): @@ -67,8 +71,8 @@ class SecretStore(BaseModel): default_factory=lambda: MappingProxyType({}) ) - custom_secrets: CUSTOM_SECRETS_TYPE = Field( - default_factory=lambda: MappingProxyType({}) + custom_secrets: CUSTOM_SECRETS_TYPE_WITH_JSON_SCHEMA = Field( + default_factory=lambda: MappingProxyType({}), ) model_config = {