mirror of
https://github.com/langgenius/dify.git
synced 2025-07-07 09:11:55 +00:00
18 lines
473 B
Python
18 lines
473 B
Python
![]() |
from pydantic import BaseModel
|
||
|
|
||
|
from core.plugin.manager.base import BasePluginManager
|
||
|
|
||
|
|
||
|
class PluginDebuggingManager(BasePluginManager):
|
||
|
def get_debugging_key(self, tenant_id: str) -> str:
|
||
|
"""
|
||
|
Get the debugging key for the given tenant.
|
||
|
"""
|
||
|
|
||
|
class Response(BaseModel):
|
||
|
key: str
|
||
|
|
||
|
response = self._request_with_plugin_daemon_response("POST", f"plugin/{tenant_id}/debugging/key", Response)
|
||
|
|
||
|
return response.key
|