Просмотр исходного кода

Add rx7900-llm and qwen-flash-next-strata providers, update model and flymcp path

rx7900@rx7900.com 1 месяц назад
Родитель
Сommit
5ffe3473f4
2 измененных файлов с 62 добавлено и 4 удалено
  1. 23 2
      config.json
  2. 39 2
      opencode.jsonc

+ 23 - 2
config.json

@@ -11,7 +11,7 @@
         "qwen3.8": {
           "name": "Qwen 3.8",
           "limit": {
-            "context": 128000, 
+            "context": 128000,
             "output": 8192
           },
           "cost": {
@@ -22,8 +22,29 @@
           }
         }
       }
+    },
+    "qwen-flash-next-strata": {
+      "npm": "@ai-sdk/openai-compatible",
+      "name": "Qwen Strata (192.168.1.38:8088)",
+      "options": {
+        "baseURL": "http://192.168.1.38:8088/v1"
+      },
+      "models": {
+        "qwen3.8-flash-next-coder": {
+          "name": "Qwen3.8-flash-next-coder",
+          "limit": {
+            "context": 128000,
+            "output": 32000 
+          },
+          "cost": {
+            "input": 0,
+            "output": 0,
+            "cache_read": 0,
+            "cache_write": 0
+          }
+        }
+      }
     }
   },
   "model": "qwen-local/qwen3.8"
 }
-

+ 39 - 2
opencode.jsonc

@@ -1,8 +1,45 @@
 {
   "$schema": "https://opencode.ai/config.json",
+  "model": "rx7900-llm/my-model-id",
   "skills": {
     "paths": ["~/.config/opencode/skills-repo/skills"]
   },
+  "provider": {
+    "qwen-local": {
+      "npm": "@ai-sdk/openai-compatible",
+      "name": "Qwen Local (192.168.1.38)",
+      "options": {
+        "baseURL": "http://192.168.1.38:8284/v1"
+      },
+      "models": {
+        "qwen3.8": {
+          "name": "Qwen 3.8",
+          "limit": {
+            "context": 128000,
+            "output": 8192
+          },
+          "cost": {
+            "input": 2,
+            "output": 6,
+            "cache_read": 0.25,
+            "cache_write": 0.25
+          }
+        }
+      }
+    },
+    "rx7900-llm": {
+      "npm": "@ai-sdk/openai-compatible",
+      "name": "rx7900-llm",
+      "options": {
+        "baseURL": "http://192.168.1.38:8284/v1"
+      },
+      "models": {
+        "my-model-id": {
+          "name": "rx7900-qwen38"
+        }
+      }
+    }
+  },
   "mcp": {
     "postgres": {
       "type": "local",
@@ -16,7 +53,7 @@
     },
     "flymcp": {
       "type": "local",
-      "command": ["/home/i78700es/.local/bin/flymcp"],
+      "command": ["/home/rx7900/.local/bin/flymcp"],
       "enabled": true
     },
     "repomix": {
@@ -25,4 +62,4 @@
       "enabled": true
     }
   }
-}
+}