openher / providers /llm /dashscope.py
kellyxiaowei's picture
Deploy OpenHer Gradio Space โ€” gemma-4-E4B served on Modal
dff25f7 verified
Raw
History Blame Contribute Delete
382 Bytes
"""DashScope (้˜ฟ้‡Œ Qwen) โ€” OpenAI-compatible LLM provider."""
from .base import OpenAICompatProvider
class DashScopeLLMProvider(OpenAICompatProvider):
"""้˜ฟ้‡Œ DashScope (qwen-max)."""
PROVIDER_NAME = "dashscope"
DEFAULT_BASE_URL = "https://dashscope.aliyuncs.com/compatible-mode/v1"
DEFAULT_API_KEY_ENV = "DASHSCOPE_API_KEY"
DEFAULT_MODEL = "qwen-max"