mirror of
https://github.com/langgenius/dify.git
synced 2026-04-23 12:16:11 +08:00
fix: add comments for API contract compatibility in PluginCredentialType enum
This commit is contained in:
@ -8,8 +8,8 @@ from services.errors.base import BaseServiceError
|
||||
|
||||
|
||||
class PluginCredentialType(enum.Enum):
|
||||
MODEL = 0
|
||||
TOOL = 1
|
||||
MODEL = 0 # must be 0 for API contract compatibility
|
||||
TOOL = 1 # must be 1 for API contract compatibility
|
||||
|
||||
def to_number(self):
|
||||
return self.value
|
||||
|
||||
Reference in New Issue
Block a user