diff --git a/app/Libraries/Yo.php b/app/Libraries/Yo.php index f95017e..8dd24ac 100644 --- a/app/Libraries/Yo.php +++ b/app/Libraries/Yo.php @@ -32,6 +32,9 @@ public static function error_echo($code, $replace = []) public static function error_exit($exit) { + if (is_array($exit)) { + $exit = response()->json($exit)->setEncodingOptions(JSON_UNESCAPED_UNICODE); + } throw new HttpResponseException($exit); } diff --git a/opencode.json b/opencode.json deleted file mode 100644 index 8f3ba4a..0000000 --- a/opencode.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "$schema": "https://opencode.ai/config.json", - "plugin": ["oh-my-openagent"], - "mcp": { - "playwright-server": { - "enabled": true, - "type": "local", - "command": ["npx", "-y", "@executeautomation/playwright-mcp-server"] - } - }, - "provider":{ - "minimax-yangzong": { - "npm": "@ai-sdk/anthropic", - "options": { - "baseURL": "https://api.minimaxi.com/anthropic/v1", - "apiKey": "{env:YANG_MINMAX_KEY}" - }, - "models": { - "MiniMax-M2.7": { - "name": "MiniMax-M2.7" - } - } - }, - "yan-ZhiPu": { - "options": { - "baseURL": "https://open.bigmodel.cn/api/coding/paas/v4", - "apiKey": "{env:YAN_ZHIPU_API_KEY}" - }, - "models": { - "GLM-4.7": { - "name": "GLM-4.7" - }, - "GLM-5": { - "name": "GLM-5" - }, - "GLM-5.1": { - "name": "GLM-5.1" - } - } - } - } -}