Files
OpenCode 68a9071cf1 feat: reconcile local master with origin (exa/hot-platform hunters, leaks ledger, latest results)
Local branch had diverged from origin/master (sibling commits on the same base). Rewrote local history linearly on top of origin/master, folding in all local content: exa/hot-platform discovery hunters, leaks ledger, nightly sweep orchestrator, updated .gitignore and skill docs, plus the latest hunt output and vault state. Remote-only files (vault keys, channel scripts) were restored rather than dropped, so the resulting tree is a full union of both sides.
2026-08-07 12:53:47 +08:00

1 line
1.5 KiB
JSON

{"repo": "cepot-blip/deepseek-openai", "files": {"src/index.js": {"bf75b0d497d091b9c2862497ad3bc18e36248629": {"t": 1786068270.2980962, "n": 1239, "h": "2ea8e129bc14adb4", "c": "import express from \"express\";\nimport axios from \"axios\";\nimport { PrismaClient } from \"@prisma/client\";\nimport dotenv from \"dotenv\";\n\ndotenv.config();\nconst app = express();\nconst PORT = process.env.PORT || 3000;\nconst prisma = new PrismaClient();\nconst DEEPSEEK_API_KEY = process.env.DEEPSEEK_API_KEY;\n\napp.use(express.json());\n\napp.post(\"/chat\", async (req, res) => {\n const { prompt } = req.body;\n\n if (!prompt) return res.status(400).json({ error: \"Prompt is required\" });\n\n try {\n const response = await axios.post(\n \"https://api.deepseek.com/v1/chat/completions\",\n {\n model: \"deepseek-chat\",\n messages: [{ role: \"user\", content: prompt }],\n },\n {\n headers: {\n Authorization: `Bearer ${DEEPSEEK_API_KEY}`,\n \"Content-Type\": \"application/json\",\n },\n }\n );\n\n const aiResponse = response.data.choices[0].message.content;\n\n const chat = await prisma.chat.create({\n data: { prompt, response: aiResponse },\n });\n\n res.json(chat);\n } catch (error) {\n console.error(error);\n res.status(500).json({ error: \"Failed to generate response\" });\n }\n});\n\napp.listen(PORT, () => {\n console.log(`Server running on http://localhost:${PORT}`);\n});\n"}}}}