mirror of https://github.com/langgenius/dify.git
fix: add comments for API contract compatibility in PluginCredentialType enum
This commit is contained in:
parent
8a43aedc15
commit
50fec8fc3c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue