diff --git a/.gitignore b/.gitignore index 0c858aa..627b07b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /Laravel/public/admin /h5/unpackage /h5/unpackage +opencode.json diff --git a/opencode.json b/opencode.json index 07e3262..98e6ce0 100644 --- a/opencode.json +++ b/opencode.json @@ -12,7 +12,7 @@ "npm": "@ai-sdk/anthropic", "options": { "baseURL": "https://api.minimaxi.com/anthropic/v1", - "apiKey": "sk-cp-REPHutjIhDvE9FOy_rpzs73QmUndYf_Z6-_9IDgLP6VT3fDt80iRV6I169KiA_xYC1Y2Qj5MwqQ6OJAjSslDPf20V95hAxb3XAjHYXsRxSAOrsqbq2l3o3U" + "apiKey": "{env:YANG_MINMAX_KEY}" }, "models": { "MiniMax-M2.7": { @@ -20,147 +20,22 @@ } } }, - "newapi": { - "npm": "@ai-sdk/openai-compatible", - "name": "NewAPI", - "options": { - "baseURL": "http://new-api.soeasy.space:3000/v1", - "apiKey": "sk-q1CMlQXNjKFjILfpMoO7vZo70Fy6Osy9HfChCB5JAAqZybCk" - }, - "models": { - "gpt-5.2": { - "name": "GPT-5.2", - "modalities": { - "input": ["text"], - "output": ["text"] - }, - "limit": { - "context": 128000, - "output": 16384 - } - }, - "gpt-5.3-codex": { - "name": "GPT-5.3 Codex", - "modalities": { - "input": ["text"], - "output": ["text"] - }, - "limit": { - "context": 128000, - "output": 16384 - } - }, - "gpt-5.4": { - "name": "GPT-5.4", - "modalities": { - "input": ["text"], - "output": ["text"] - }, - "limit": { - "context": 128000, - "output": 16384 - } - }, - "deepseek-v3.2": { - "name": "DeepSeek V3.2", - "modalities": { - "input": ["text"], - "output": ["text"] - }, - "limit": { - "context": 128000, - "output": 16384 - } - }, - "glm-5": { - "name": "GLM-5", - "modalities": { - "input": ["text"], - "output": ["text"] - }, - "limit": { - "context": 128000, - "output": 16384 - } - }, - "grok-4.1-fast": { - "name": "Grok 4.1 Fast", - "modalities": { - "input": ["text"], - "output": ["text"] - }, - "limit": { - "context": 128000, - "output": 16384 - } - }, - "grok-4.1-thinking": { - "name": "Grok 4.1 Thinking", - "modalities": { - "input": ["text"], - "output": ["text"] - }, - "limit": { - "context": 128000, - "output": 16384 - } - }, - "grok-4.20-beta": { - "name": "Grok 4.20 Beta", - "modalities": { - "input": ["text"], - "output": ["text"] - }, - "limit": { - "context": 128000, - "output": 16384 - } - }, - "kimi-k2.5": { - "name": "Kimi K2.5", - "modalities": { - "input": ["text"], - "output": ["text"] - }, - "limit": { - "context": 128000, - "output": 16384 - } - }, - "minimax-m2.5": { - "name": "MiniMax M2.5", - "modalities": { - "input": ["text"], - "output": ["text"] - }, - "limit": { - "context": 128000, - "output": 16384 - } - }, - "qwen3-coder-plus": { - "name": "Qwen3 Coder Plus", - "modalities": { - "input": ["text"], - "output": ["text"] - }, - "limit": { - "context": 128000, - "output": 16384 - } - }, - "qwen3.5-plus": { - "name": "Qwen3.5 Plus", - "modalities": { - "input": ["text"], - "output": ["text"] - }, - "limit": { - "context": 128000, - "output": 16384 - } - } - } + "yan-ZhiPu": { + "options": { + "baseURL": "https://open.bigmodel.cn/api/coding/paas/v4", + "apiKey": "{env:YAN_ZHIPU_API_KEY}" + }, + "models": { + "GLM-4.5-Air": { + "name": "GLM-4.5-Air" + }, + "GLM-4.7": { + "name": "GLM-4.7" + }, + "GLM-5": { + "name": "GLM-5" } + } + } } }