Files
hack/tools/scripts/llm-key-hunter/results/_cache/content/alikazmidev_nemu.json
T

1 line
4.2 KiB
JSON

{"repo": "alikazmidev/nemu", "files": {"utils/providers/deepseek.js": {"0de52b336b44c9bd951e3e4bd1ca4c5130f0f68e": {"t": 1785745999.3398776, "n": 1261, "h": "5019f23a63b8b16b", "c": "const DEEPSEEK_API_URL = 'https://api.deepseek.com/v1/chat/completions';\nconst MODEL = 'deepseek-chat';\nconst TEMPERATURE = 0.3;\nconst MAX_TOKENS = 900;\n\nasync function summarize(apiKey, formattedMessages) {\n const response = await fetch(DEEPSEEK_API_URL, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${apiKey}`,\n },\n body: JSON.stringify({\n model: MODEL,\n messages: [\n {\n role: 'system',\n content:\n 'Summarize the Discord conversation in clear bullet points. Keep it concise and useful. Write in the same language used in the conversation.',\n },\n {\n role: 'user',\n content: `Conversation to summarize:\\n\\n${formattedMessages}`,\n },\n ],\n temperature: TEMPERATURE,\n max_tokens: MAX_TOKENS,\n }),\n });\n\n if (!response.ok) {\n const errorBody = await response.text();\n throw new Error(`DeepSeek API error ${response.status}: ${errorBody}`);\n }\n\n const data = await response.json();\n const content = data?.choices?.[0]?.message?.content;\n\n if (!content) {\n throw new Error('Unexpected DeepSeek response format.');\n }\n\n return content.trim();\n}\n\nmodule.exports = { summarize };\n"}, "14322fff26348063500376b10c776ee67d140cbb": {"t": 1785758657.7962162, "n": 1261, "h": "5019f23a63b8b16b", "c": "const DEEPSEEK_API_URL = 'https://api.deepseek.com/v1/chat/completions';\nconst MODEL = 'deepseek-chat';\nconst TEMPERATURE = 0.3;\nconst MAX_TOKENS = 900;\n\nasync function summarize(apiKey, formattedMessages) {\n const response = await fetch(DEEPSEEK_API_URL, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${apiKey}`,\n },\n body: JSON.stringify({\n model: MODEL,\n messages: [\n {\n role: 'system',\n content:\n 'Summarize the Discord conversation in clear bullet points. Keep it concise and useful. Write in the same language used in the conversation.',\n },\n {\n role: 'user',\n content: `Conversation to summarize:\\n\\n${formattedMessages}`,\n },\n ],\n temperature: TEMPERATURE,\n max_tokens: MAX_TOKENS,\n }),\n });\n\n if (!response.ok) {\n const errorBody = await response.text();\n throw new Error(`DeepSeek API error ${response.status}: ${errorBody}`);\n }\n\n const data = await response.json();\n const content = data?.choices?.[0]?.message?.content;\n\n if (!content) {\n throw new Error('Unexpected DeepSeek response format.');\n }\n\n return content.trim();\n}\n\nmodule.exports = { summarize };\n"}, "87ee61546df1f784d2d3db586dd368a57255f1d6": {"t": 1785758658.9931297, "n": 1197, "h": "c8950a01a4a320ac", "c": "const DEEPSEEK_API_URL = 'https://api.deepseek.com/v1/chat/completions';\nconst MODEL = 'deepseek-chat';\n\nasync function summarize(apiKey, formattedMessages) {\n const response = await fetch(DEEPSEEK_API_URL, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${apiKey}`,\n },\n body: JSON.stringify({\n model: MODEL,\n messages: [\n {\n role: 'system',\n content:\n 'Summarize the Discord conversation in clear bullet points. Keep it concise and useful. Write in the same language used in the conversation.',\n },\n {\n role: 'user',\n content: `Conversation to summarize:\\n\\n${formattedMessages}`,\n },\n ],\n temperature: 0.3,\n max_tokens: 900,\n }),\n });\n\n if (!response.ok) {\n const errorBody = await response.text();\n throw new Error(`DeepSeek API error ${response.status}: ${errorBody}`);\n }\n\n const data = await response.json();\n const content = data?.choices?.[0]?.message?.content;\n\n if (!content) {\n throw new Error('Unexpected DeepSeek response format.');\n }\n\n return content.trim();\n}\n\nmodule.exports = { summarize };\n"}}}}