{"repo": "adanzweig/deepseek-nodejs", "files": {"index.js": {"3224c08cf8313edd0313dae5709228b170e0c791": {"t": 1785745998.3415015, "n": 687, "h": "4e16cf4c6f5e3a2c", "c": "const axios = require('axios');\nrequire('dotenv').config();\n\nconst apiKey = process.env.DEEPSEEK_API_KEY;\n\nconst data = {\n model:'deepseek-chat',\n messages:[\n {role: \"system\",content:\"You are a chinese translator, i need you to translate whatever the user is saying\"},\n {role:\"user\",content:\"Hello, my name is Ado and i am teaching you how to code APIs\"}\n ],\n stream:false\n}\n\naxios.post('https://api.deepseek.com/chat/completions',data,{headers:{\n 'Content-Type':'application/json',\n 'Authorization': `Bearer ${apiKey}`\n}}).then(response=>{\n console.log(response.data.choices[0].message)\n}).catch(error=>{\n console.error('Error:',error.response);\n})"}}}}