opencodeCodingPlan.ts 1.5 KB

123456789101112131415161718192021222324252627282930
  1. /**
  2. * OpenCode CodingPlan
  3. *
  4. * - OpenCode 聚合的编码类套餐,具体后端随订阅变化。
  5. * - 官网:https://opencode.ai/
  6. */
  7. import type { InkosEndpoint } from "../types.js";
  8. export const OPENCODE_CODING_PLAN: InkosEndpoint = {
  9. id: "opencodeCodingPlan",
  10. label: "OpenCode Coding Plan",
  11. group: "codingPlan",
  12. api: "anthropic-messages",
  13. baseUrl: "https://opencode.ai/api/anthropic",
  14. checkModel: "glm-5.1",
  15. temperatureRange: [0, 1],
  16. defaultTemperature: 0.7,
  17. writingTemperature: 1,
  18. models: [
  19. { id: "glm-5.1", maxOutput: 32000, contextWindowTokens: 204800, enabled: true, releasedAt: "2026-04-07" },
  20. { id: "glm-5", maxOutput: 32000, contextWindowTokens: 204800, enabled: false, releasedAt: "2026-02-11" },
  21. { id: "kimi-k2.5", maxOutput: 32000, contextWindowTokens: 262144, enabled: false, releasedAt: "2026-01-27", temperature: 1 },
  22. { id: "mimo-v2-omni", maxOutput: 32000, contextWindowTokens: 262144, enabled: false, releasedAt: "2026-03-18" },
  23. { id: "qwen3.6-plus", maxOutput: 32000, contextWindowTokens: 262144, enabled: true, releasedAt: "2026-04-02" },
  24. { id: "minimax-m2.5", maxOutput: 32000, contextWindowTokens: 204800, enabled: false, releasedAt: "2026-02-12" },
  25. { id: "minimax-m2.7", maxOutput: 32000, contextWindowTokens: 204800, enabled: true, releasedAt: "2026-03-18" },
  26. { id: "mimo-v2-pro", maxOutput: 32000, contextWindowTokens: 1048576, enabled: false, releasedAt: "2026-03-18" },
  27. { id: "qwen3.5-plus", maxOutput: 32000, contextWindowTokens: 262144, enabled: false, releasedAt: "2026-02-16" },
  28. ],
  29. };