Files
jumpserver/apps/settings/const.py
2025-12-10 10:43:14 +08:00

19 lines
416 B
Python

from django.db.models import TextChoices
from django.utils.translation import gettext_lazy as _
class ImportStatus(TextChoices):
ok = 'ok', 'Ok'
pending = 'pending', 'Pending'
error = 'error', 'Error'
class ChatAIMethodChoices(TextChoices):
api = 'api', 'API'
embed = 'embed', _('Embed')
class ChatAITypeChoices(TextChoices):
openai = 'openai', 'Openai'
ollama = 'ollama', 'Ollama'