mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 04:26:30 +08:00
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):
|
class PluginCredentialType(enum.Enum):
|
||||||
MODEL = 0
|
MODEL = 0 # must be 0 for API contract compatibility
|
||||||
TOOL = 1
|
TOOL = 1 # must be 1 for API contract compatibility
|
||||||
|
|
||||||
def to_number(self):
|
def to_number(self):
|
||||||
return self.value
|
return self.value
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user