fix: add comments for API contract compatibility in PluginCredentialType enum

This commit is contained in:
GareArc 2025-09-12 02:57:38 -07:00
parent 8a43aedc15
commit 50fec8fc3c
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -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