mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-12-24 04:52:39 +00:00
19 lines
416 B
Python
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'
|