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

1 line
2.1 KiB
JSON

{"repo": "arifsoul/onsite", "files": {".history/onsite/src/services/deepseekApi_20250414150535.js": {"9cc260f52fc832301d8f2e2aca5a5665624b3801": {"t": 1785746665.7602503, "n": 886, "h": "3c57a4950f1a99ac", "c": "import axios from 'axios';\n\nconst API_KEY = 'YOUR_DEEPSEEK_API_KEY';\nconst BASE_URL = 'https://api.deepseek.com';\n\nexport const generateCode = async (prompt) => {\n try {\n const response = await axios.post(\n `${BASE_URL}/chat/completions`,\n {\n model: 'deepseek-chat',\n messages: [\n {\n role: 'system',\n content:\n 'You are an AI that generates React component code (HTML, CSS, JS) based on user descriptions. Return structured JSON with html, css, js, and components array.',\n },\n { role: 'user', content: prompt },\n ],\n stream: false,\n },\n {\n headers: {\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${API_KEY}`,\n },\n }\n );\n return response;\n } catch (error) {\n throw new Error('Failed to generate code');\n }\n};"}, "b52ff0a2c411c454d2d2de49f4bc0a8b8aaa635f": {"t": 1785766701.0816379, "n": 886, "h": "3c57a4950f1a99ac", "c": "import axios from 'axios';\n\nconst API_KEY = 'YOUR_DEEPSEEK_API_KEY';\nconst BASE_URL = 'https://api.deepseek.com';\n\nexport const generateCode = async (prompt) => {\n try {\n const response = await axios.post(\n `${BASE_URL}/chat/completions`,\n {\n model: 'deepseek-chat',\n messages: [\n {\n role: 'system',\n content:\n 'You are an AI that generates React component code (HTML, CSS, JS) based on user descriptions. Return structured JSON with html, css, js, and components array.',\n },\n { role: 'user', content: prompt },\n ],\n stream: false,\n },\n {\n headers: {\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${API_KEY}`,\n },\n }\n );\n return response;\n } catch (error) {\n throw new Error('Failed to generate code');\n }\n};"}}}}