feat: add Swagger UI docs, custom CORS middleware, and request logging
- Add Swagger UI files and updated API spec for Family Safety Tracker - Replace shelf_cors_headers with custom CORS middleware in server.dart - Add request_logger middleware with timing for auth and geo routes - Add REGISTRATION_SECRET_KEY to .env for registration validation - Remove postgres port exposure from docker-compose.yml - Update opencode.json model configuration - Add crypto dependency and update Flutter web assets
This commit is contained in:
+124
-13
@@ -1,28 +1,139 @@
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"server": {
|
||||
"port": 4096,
|
||||
"hostname": "0.0.0.0"
|
||||
},
|
||||
"compaction": {
|
||||
"auto": false
|
||||
},
|
||||
"autoupdate": false,
|
||||
"model": "llama_swap/Qwen3.6-35B-A3B-Q8_0_img",
|
||||
"small_model": "llama_swap/cpu_gemma4-E2B-Q4_K_M",
|
||||
"provider": {
|
||||
"llama.cpp": {
|
||||
"llama_swap": {
|
||||
"name": "llama_swap",
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"name": "llama-server (local)",
|
||||
"options": {
|
||||
"baseURL": "http://127.0.0.1:9988/v1"
|
||||
},
|
||||
"models": {
|
||||
"qwen3-coder:a3b": {
|
||||
"name": "Qwen_Qwen3.5-9B-Q6_K (local)",
|
||||
"Qwen3.6-35B-A3B-Q8_0_img": {
|
||||
"name": "Qwen3.6-35B-A3B-Q8_0_img",
|
||||
"tool_call": true,
|
||||
"reasoning": true,
|
||||
"limit": {
|
||||
"context": 248000,
|
||||
"output": 65655
|
||||
"context": 196608,
|
||||
"output": 83968
|
||||
},
|
||||
"modalities": {
|
||||
"input": ["text", "image", "pdf"],
|
||||
"output": ["text"]
|
||||
}
|
||||
},
|
||||
"Qwen3.6-35B-A3B-Q8_0_fullctx": {
|
||||
"name": "Qwen3.6-35B-A3B-Q8_0_fullctx",
|
||||
"tool_call": true,
|
||||
"reasoning": true,
|
||||
"limit": {
|
||||
"context": 262144,
|
||||
"output": 83968
|
||||
},
|
||||
"modalities": {
|
||||
"input": ["text"],
|
||||
"output": ["text"]
|
||||
}
|
||||
},
|
||||
"google_gemma-4-E4B-it-Q4_K_M": {
|
||||
"name": "google_gemma-4-E4B-it-Q4_K_M",
|
||||
"tool_call": true,
|
||||
"reasoning": true,
|
||||
"limit": {
|
||||
"context": 262144,
|
||||
"output": 65536
|
||||
},
|
||||
"modalities": {
|
||||
"input": ["text", "image", "pdf", "audio", "video"],
|
||||
"output": ["text"]
|
||||
}
|
||||
},
|
||||
"GRM-2.6-Plus-Q8_0": {
|
||||
"name": "GRM-2.6-Plus-Q8_0",
|
||||
"tool_call": true,
|
||||
"reasoning": true,
|
||||
"limit": {
|
||||
"context": 196608,
|
||||
"output": 83968
|
||||
},
|
||||
"modalities": {
|
||||
"input": ["text", "image", "pdf"],
|
||||
"output": ["text"]
|
||||
}
|
||||
},
|
||||
"cpu_gemma4-E2B-Q4_K_M": {
|
||||
"name": "cpu_gemma4-E2B-Q4_K_M",
|
||||
"tool_call": false,
|
||||
"reasoning": false,
|
||||
"limit": {
|
||||
"context": 16384,
|
||||
"output": 16384
|
||||
},
|
||||
"modalities": {
|
||||
"input": ["text"],
|
||||
"output": ["text"]
|
||||
}
|
||||
},
|
||||
"Qwopus3.5-27B-v3-Q8_0": {
|
||||
"name": "Qwopus3.5-27B-v3-Q8_0",
|
||||
"tool_call": true,
|
||||
"reasoning": true,
|
||||
"limit": {
|
||||
"context": 262144,
|
||||
"output": 83968
|
||||
},
|
||||
"modalities": {
|
||||
"input": ["text"],
|
||||
"output": ["text"]
|
||||
}
|
||||
},
|
||||
"Qwopus3.6-27B-v1-preview-Q8_0": {
|
||||
"name": "Qwopus3.6-27B-v1-preview-Q8_0",
|
||||
"tool_call": true,
|
||||
"reasoning": true,
|
||||
"limit": {
|
||||
"context": 262144,
|
||||
"output": 83968
|
||||
},
|
||||
"modalities": {
|
||||
"input": ["text"],
|
||||
"output": ["text"]
|
||||
}
|
||||
},
|
||||
"Qwopus3.6-35B-A3B-v1-Q8_0": {
|
||||
"name": "Qwopus3.6-35B-A3B-v1-Q8_0",
|
||||
"tool_call": true,
|
||||
"reasoning": true,
|
||||
"limit": {
|
||||
"context": 262144,
|
||||
"output": 83968
|
||||
},
|
||||
"modalities": {
|
||||
"input": ["text"],
|
||||
"output": ["text"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
"baseURL": "https://ai.shstk.ru/v1",
|
||||
"apiKey": "shs.passwd"
|
||||
}
|
||||
}
|
||||
},
|
||||
"mcp": {
|
||||
"IntelliJIdea": {
|
||||
"type": "remote",
|
||||
"url": "http://127.0.0.1:64342/stream",
|
||||
"chrome-devtools": {
|
||||
"type": "local",
|
||||
"command": ["/home/andrey/chrome-devtools-mcp-venv/bin/python", "/home/andrey/chrome-devtools-mcp/server.py"],
|
||||
"environment": {
|
||||
"CHROME_DEBUG_PORT": "9222"
|
||||
},
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user