mirror of
https://github.com/langgenius/dify.git
synced 2026-02-12 04:01:29 -05:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: hj24 <mambahj24@gmail.com>
22 lines
626 B
Python
22 lines
626 B
Python
from enum import StrEnum
|
|
|
|
|
|
class HostedTrialProvider(StrEnum):
|
|
"""
|
|
Enum representing hosted model provider names for trial access.
|
|
"""
|
|
|
|
OPENAI = "langgenius/openai/openai"
|
|
ANTHROPIC = "langgenius/anthropic/anthropic"
|
|
GEMINI = "langgenius/gemini/google"
|
|
X = "langgenius/x/x"
|
|
DEEPSEEK = "langgenius/deepseek/deepseek"
|
|
TONGYI = "langgenius/tongyi/tongyi"
|
|
|
|
@property
|
|
def config_key(self) -> str:
|
|
"""Return the config key used in dify_config (e.g., HOSTED_{config_key}_PAID_ENABLED)."""
|
|
if self == HostedTrialProvider.X:
|
|
return "XAI"
|
|
return self.name
|