SIN-Deploy-Bot commited on
Commit
722a696
·
1 Parent(s): 1256b32

fix: add models section to opencode.json config

Browse files

The opencode-qwen-auth plugin requires a 'models' section in the
provider config. Adding proper model definitions for qwen3.6-plus-free
and minimax-m2.5-free to prevent TypeError: provider.models undefined

Files changed (1) hide show
  1. start.sh +18 -0
start.sh CHANGED
@@ -52,6 +52,24 @@ if [ ! -f ~/.config/opencode/opencode.json ]; then
52
  "openai": {
53
  "options": {
54
  "baseUrl": "http://92.5.60.87:4100/v1"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  }
56
  }
57
  }
 
52
  "openai": {
53
  "options": {
54
  "baseUrl": "http://92.5.60.87:4100/v1"
55
+ },
56
+ "models": {
57
+ "qwen3.6-plus-free": {
58
+ "name": "Qwen 3.5 Plus Free",
59
+ "id": "qwen3.6-plus-free",
60
+ "limit": {
61
+ "context": 32000,
62
+ "output": 8000
63
+ }
64
+ },
65
+ "minimax-m2.5-free": {
66
+ "name": "MiniMax M2.5 Free",
67
+ "id": "minimax-m2.5-free",
68
+ "limit": {
69
+ "context": 32000,
70
+ "output": 8000
71
+ }
72
+ }
73
  }
74
  }
75
  }