opencode.jsonc 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. {
  2. "$schema": "https://opencode.ai/config.json",
  3. "permission": {
  4. "edit": "allow",
  5. "bash": "allow",
  6. "external_directory": "allow"
  7. },
  8. "enabled_providers": ["tmdaq", "opencode", "opencode-go", "tokengo", "ollama"],
  9. "provider": {
  10. "ollama": {
  11. "npm": "@ai-sdk/openai-compatible",
  12. "name": "Ollama (local)",
  13. "options": {
  14. "baseURL": "http://localhost:11434/v1",
  15. "apiKey": "ollama"
  16. },
  17. "models": {
  18. "minicpm5-2b": {
  19. "name": "MiniCPM5-2B (面壁智能)",
  20. "release_date": "2026-09-10",
  21. "attachment": false,
  22. "reasoning": true,
  23. "temperature": true,
  24. "tool_call": true,
  25. "cost": { "input": 0, "output": 0, "cache_read": 0, "cache_write": 0 },
  26. "limit": { "context": 32768, "output": 32768 },
  27. "modalities": { "input": ["text"], "output": ["text"] }
  28. }
  29. }
  30. },
  31. "tmdaq": {
  32. "npm": "@ai-sdk/openai-compatible",
  33. "name": "TMDAQ",
  34. "options": {
  35. "baseURL": "https://token.tmdaq.com/v1",
  36. "apiKey": "sk-X5cq645pLZgOoePIU8BCIvbYxVYlK0fu6eNTvcffkZAFZSOl"
  37. },
  38. "models": {
  39. "glm-5.3": {
  40. "name": "GLM-5.3",
  41. "release_date": "2026-08-14",
  42. "attachment": false,
  43. "reasoning": true,
  44. "temperature": true,
  45. "tool_call": true,
  46. "cost": { "input": 1.4, "output": 4.4, "cache_read": 0.26, "cache_write": 0 },
  47. "limit": { "context": 1000000, "output": 131072 },
  48. "modalities": { "input": ["text"], "output": ["text"] }
  49. },
  50. "glm-5.3-flash": {
  51. "name": "GLM-5.3-Flash",
  52. "release_date": "2026-08-26",
  53. "attachment": true,
  54. "reasoning": true,
  55. "temperature": true,
  56. "tool_call": true,
  57. "cost": { "input": 0.075, "output": 0.25, "cache_read": 0.015, "cache_write": 0 },
  58. "limit": { "context": 1000000, "output": 131072 },
  59. "modalities": { "input": ["text", "image", "video", "pdf"], "output": ["text"] }
  60. },
  61. "MiniMax-M3": {
  62. "name": "MiniMax-M3",
  63. "release_date": "2026-06-01",
  64. "attachment": true,
  65. "reasoning": true,
  66. "temperature": true,
  67. "tool_call": true,
  68. "cost": {
  69. "input": 0.3, "output": 1.2, "cache_read": 0.06,
  70. "context_over_200k": { "input": 0.6, "output": 2.4, "cache_read": 0.12 }
  71. },
  72. "limit": { "context": 1048576, "output": 512000 },
  73. "modalities": { "input": ["text", "image", "video"], "output": ["text"] }
  74. },
  75. "deepseek-v4-flash": {
  76. "name": "DeepSeek V4 Flash",
  77. "release_date": "2026-07-31",
  78. "attachment": false,
  79. "reasoning": true,
  80. "temperature": true,
  81. "tool_call": true,
  82. "cost": { "input": 0.14, "output": 0.28, "cache_read": 0.0028 },
  83. "limit": { "context": 1000000, "output": 384000 },
  84. "modalities": { "input": ["text"], "output": ["text"] }
  85. },
  86. "deepseek-v4-pro": {
  87. "name": "DeepSeek V4 Pro",
  88. "release_date": "2026-08-12",
  89. "attachment": false,
  90. "reasoning": true,
  91. "temperature": true,
  92. "tool_call": true,
  93. "cost": { "input": 0.435, "output": 0.87, "cache_read": 0.003625 },
  94. "limit": { "context": 1000000, "output": 384000 },
  95. "modalities": { "input": ["text"], "output": ["text"] }
  96. },
  97. "deepseek-v4-flash-vision-exp": {
  98. "name": "DeepSeek V4 Flash Vision Exp",
  99. "release_date": "2026-08-21",
  100. "attachment": true,
  101. "reasoning": true,
  102. "temperature": true,
  103. "tool_call": true,
  104. "cost": { "input": 0.14, "output": 0.28, "cache_read": 0.0028 },
  105. "limit": { "context": 1000000, "output": 384000 },
  106. "modalities": { "input": ["text", "image"], "output": ["text"] }
  107. },
  108. "qwen3.8-27b": {
  109. "name": "Qwen3.8 27B",
  110. "release_date": "2026-08-14",
  111. "attachment": false,
  112. "reasoning": true,
  113. "temperature": true,
  114. "tool_call": true,
  115. "cost": { "input": 0.45, "output": 3.2, "cache_read": 0.05, "cache_write": 0 },
  116. "limit": { "context": 262144, "output": 32768 },
  117. "modalities": { "input": ["text"], "output": ["text"] }
  118. }
  119. }
  120. }
  121. },
  122. "plugin": [
  123. "oh-my-openagent@latest"
  124. ]
  125. }