config.json 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. {
  2. "$schema": "https://opencode.ai/config.json",
  3. "provider": {
  4. "qwen-local": {
  5. "npm": "@ai-sdk/openai-compatible",
  6. "name": "Qwen Local (192.168.1.38)",
  7. "options": {
  8. "baseURL": "http://192.168.1.38:8284/v1"
  9. },
  10. "models": {
  11. "qwen3.8": {
  12. "name": "Qwen 3.8",
  13. "limit": {
  14. "context": 128000,
  15. "output": 8192
  16. },
  17. "cost": {
  18. "input": 2,
  19. "output": 6,
  20. "cache_read": 0.25,
  21. "cache_write": 0.25
  22. }
  23. }
  24. }
  25. },
  26. "qwen-flash-next-strata": {
  27. "npm": "@ai-sdk/openai-compatible",
  28. "name": "Qwen Strata (192.168.1.38:8088)",
  29. "options": {
  30. "baseURL": "http://192.168.1.38:8088/v1"
  31. },
  32. "models": {
  33. "qwen3.8-flash-next-Q2_0": {
  34. "name": "Qwen3.8-fn-Q2_0",
  35. "limit": {
  36. "context": 128000,
  37. "output": 32000
  38. },
  39. "cost": {
  40. "input": 0,
  41. "output": 0,
  42. "cache_read": 0,
  43. "cache_write": 0
  44. }
  45. },
  46. "qwen3.8-flash-next-IQ2_XS": {
  47. "name": "Qwen3.8-fn-IQ2_XS",
  48. "limit": {
  49. "context": 128000,
  50. "output": 32000
  51. },
  52. "cost": {
  53. "input": 0,
  54. "output": 0,
  55. "cache_read": 0,
  56. "cache_write": 0
  57. }
  58. },
  59. "qwen3.8-flash-next-IQ3_XXS": {
  60. "name": "Qwen3.8-fn-IQ3_XXS",
  61. "limit": {
  62. "context": 131072,
  63. "output": 22000
  64. },
  65. "cost": {
  66. "input": 0,
  67. "output": 0,
  68. "cache_read": 0,
  69. "cache_write": 0
  70. }
  71. }
  72. }
  73. },
  74. "deepseek": {
  75. "npm": "@ai-sdk/openai-compatible",
  76. "name": "DeepSeek",
  77. "options": {
  78. "baseURL": "https://api.deepseek.com",
  79. "apiKey": "{env:DEEPSEEK_API_KEY}"
  80. },
  81. "models": {
  82. "deepseek-flash": {
  83. "name": "DeepSeek Flash",
  84. "limit": {
  85. "context": 128000,
  86. "output": 8192
  87. },
  88. "cost": {
  89. "input": 0.14,
  90. "output": 0.28,
  91. "cache_read": 0.014,
  92. "cache_write": 0.14
  93. },
  94. "options": {
  95. "thinking": { "type": "enabled" },
  96. "reasoning_effort": "high"
  97. }
  98. },
  99. "deepseek-v4-pro": {
  100. "name": "DeepSeek V4 Pro",
  101. "limit": {
  102. "context": 128000,
  103. "output": 8192
  104. },
  105. "cost": {
  106. "input": 0.55,
  107. "output": 2.19,
  108. "cache_read": 0.055,
  109. "cache_write": 0.55
  110. },
  111. "options": {
  112. "thinking": { "type": "enabled" },
  113. "reasoning_effort": "high"
  114. }
  115. }
  116. }
  117. }
  118. },
  119. "model": "qwen-local/qwen3.8"
  120. }