feat(oauth): update client parameters handling and improve oauth_params parsing

This commit is contained in:
Harry
2025-07-14 14:41:31 +08:00
parent f68201af0b
commit 37be099442
2 changed files with 4 additions and 12 deletions

View File

@ -55,7 +55,7 @@ class ToolOAuthTenantClient(Base):
@property
def oauth_params(self) -> dict:
return cast(dict, json.loads(self.encrypted_oauth_params))
return cast(dict, json.loads(self.encrypted_oauth_params or "{}"))
class BuiltinToolProvider(Base):