mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-04 03:30:15 +08:00
feat(sdk): add merged provider config bridge and client
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -193,6 +193,17 @@ class ProviderManagerClient:
|
||||
)
|
||||
return self._record_from_output(output)
|
||||
|
||||
async def get_merged_provider_config(
|
||||
self,
|
||||
provider_id: str,
|
||||
) -> dict[str, Any] | None:
|
||||
output = await self._proxy.call(
|
||||
"provider.manager.get_merged_provider_config",
|
||||
{"provider_id": str(provider_id).strip()},
|
||||
)
|
||||
config = output.get("config")
|
||||
return dict(config) if isinstance(config, dict) else None
|
||||
|
||||
async def load_provider(
|
||||
self,
|
||||
provider_config: dict[str, Any],
|
||||
|
||||
Reference in New Issue
Block a user