Skip to main content

MaaS Spec FAQ

tags:

  • FAQ

MaaS Spec FAQ

常见 Provider

  • Google Generative AI API / Gemini API
  • Google Vertex AI
  • Anthropic
  • OpenAI
  • xAI
  • vLLM / OpenAI compatible servers

错误码

role 差异

roleOpenAIAnthropic
developer支持通常需要映射到 system / instruction
system支持支持 system 参数/块
user支持支持
assistant支持支持
tool新版工具结果 role通常使用 user role tool result block
function旧版 function calling不使用

Thinking / Reasoning

  • Interleaved thinking
    • 思考过程可以进行 tool call。
    • Claude 4+ 支持,Messages API 才支持。
    • MiniMax-M2、Kimi-K2-Thinking 等模型也有类似能力。
  • Preserved thinking

Reasoning details

  • reasoning.summary
  • reasoning.encrypted
  • reasoning.text

相关参考:

API 行为兼容注意

  • Streaming chunk 结构、usage 时机、finish reason 位置存在供应商差异。
  • Tool call schema、tool choice、tool result role 存在供应商差异。
  • Prompt cache 最小 token、TTL、折扣和 usage 字段存在供应商差异。
  • Abort / timeout 时 usage 可能不可得,但请求仍可能产生费用。