18 lines
1.0 KiB
TOML
18 lines
1.0 KiB
TOML
name = "Alibaba Token Plan (China)"
|
|
env = ["ALIBABA_TOKEN_PLAN_API_KEY"]
|
|
npm = "@ai-sdk/openai-compatible"
|
|
# Reasoning HTTP format (accessed 2026-06-25):
|
|
# OpenAI plan base .../compatible-mode/v1 uses POST /chat/completions with
|
|
# top-level `enable_thinking`: true or false and integer `thinking_budget`.
|
|
# POST /responses uses `reasoning.effort`: none, minimal, low, medium, or high;
|
|
# `thinking_budget` is not accepted there. Anthropic plan base .../apps/anthropic
|
|
# uses POST /v1/messages with `thinking.type`: enabled or disabled, integer
|
|
# `thinking.budget_tokens`, and DeepSeek V4-only `reasoning_effort`: high or max.
|
|
# Sources:
|
|
# https://help.aliyun.com/zh/model-studio/token-plan-quickstart
|
|
# https://help.aliyun.com/zh/model-studio/deep-thinking
|
|
# https://help.aliyun.com/zh/model-studio/compatibility-with-openai-responses-api
|
|
# https://www.alibabacloud.com/help/en/model-studio/anthropic-api-messages
|
|
doc = "https://www.alibabacloud.com/help/zh/model-studio/token-plan-overview"
|
|
api = "https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1"
|