mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-08 13:12:08 +00:00
27 lines
929 B
Python
27 lines
929 B
Python
"""Alibaba Cloud Coding Plan provider profile.
|
|
|
|
Separate from the standard `alibaba` profile because it hits a different
|
|
endpoint (coding-intl.dashscope.aliyuncs.com) with a dedicated API key tier.
|
|
"""
|
|
|
|
from providers import register_provider
|
|
from providers.base import ProviderProfile
|
|
|
|
alibaba_coding_plan = ProviderProfile(
|
|
name="alibaba-coding-plan",
|
|
aliases=("alibaba_coding", "alibaba-coding", "dashscope-coding"),
|
|
display_name="Alibaba Cloud (Coding Plan)",
|
|
description="Alibaba Cloud Coding Plan — dedicated coding tier",
|
|
signup_url="https://help.aliyun.com/zh/model-studio/",
|
|
env_vars=("ALIBABA_CODING_PLAN_API_KEY", "DASHSCOPE_API_KEY", "ALIBABA_CODING_PLAN_BASE_URL"),
|
|
base_url="https://coding-intl.dashscope.aliyuncs.com/v1",
|
|
auth_type="api_key",
|
|
)
|
|
|
|
register_provider(alibaba_coding_plan)
|
|
|
|
|
|
def register(ctx):
|
|
"""No-op — this provider has no workspace package yet."""
|
|
pass
|
|
|