mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 09:28:04 +08:00
refactor(trigger): update trigger provider classes and API endpoints
- Renamed classes for trigger subscription management to improve clarity, including TriggerProviderSubscriptionListApi to TriggerSubscriptionListApi and TriggerSubscriptionsDeleteApi to TriggerSubscriptionDeleteApi. - Updated API endpoint paths to reflect the new naming conventions for trigger subscriptions. - Removed deprecated TriggerOAuthRefreshTokenApi class to streamline the codebase. - Added trigger_providers import to the console controller for better organization.
This commit is contained in:
@ -150,9 +150,7 @@ def deserialize_response(raw_data: bytes) -> Response:
|
||||
if len(parts) < 2:
|
||||
raise ValueError(f"Invalid status line: {status_line}")
|
||||
|
||||
protocol = parts[0]
|
||||
status_code = int(parts[1])
|
||||
status_text = parts[2] if len(parts) > 2 else "OK"
|
||||
|
||||
# Parse headers
|
||||
headers: dict[str, Any] = {}
|
||||
|
||||
Reference in New Issue
Block a user