{"repo": "ahsanovic/assessmentcenter", "files": {"app/Services/AIService.php": {"21f7ab28aacbf4ed2721f44b8ab05c56c44f5375": {"t": 1785745769.5050843, "n": 2979, "h": "cb161001582596c4", "c": "post('https://api.deepseek.com/chat/completions', [\n // 'model' => 'deepseek-chat',\n // 'messages' => [\n // ['role' => 'user', 'content' => $prompt]\n // ],\n // 'temperature' => 1.0,\n // 'stream' => false\n // ]);\n $response = Http::withToken(env('OPENAPI_KEY'))\n ->post('https://api.openai.com/v1/chat/completions', [\n 'model' => 'gpt-4o-mini',\n // 'max_tokens' => 100,\n 'messages' => [\n ['role' => 'system', 'content' => $prompt]\n ],\n 'temperature' => 0.7,\n ]);\n\n if (!$response->successful()) {\n Log::error('API error', [\n 'status' => $response->status(),\n 'body' => $response->body(),\n ]);\n return 'Gagal menghubungi AI. Coba lagi nanti.';\n }\n\n return $response->json()['choices'][0]['message']['content'] ?? 'Maaf, belum ada rekomendasi.';\n }\n}\n"}, "389e1be8b36496cca1e6ee1a7f7b714211d4422d": {"t": 1785756354.4342437, "n": 2979, "h": "cb161001582596c4", "c": "post('https://api.deepseek.com/chat/completions', [\n // 'model' => 'deepseek-chat',\n // 'messages' => [\n // ['role' => 'user', 'content' => $prompt]\n // ],\n // 'temperature' => 1.0,\n // 'stream' => false\n // ]);\n $response = Http::withToken(env('OPENAPI_KEY'))\n ->post('https://api.openai.com/v1/chat/completions', [\n 'model' => 'gpt-4o-mini',\n // 'max_tokens' => 100,\n 'messages' => [\n ['role' => 'system', 'content' => $prompt]\n ],\n 'temperature' => 0.7,\n ]);\n\n if (!$response->successful()) {\n Log::error('API error', [\n 'status' => $response->status(),\n 'body' => $response->body(),\n ]);\n return 'Gagal menghubungi AI. Coba lagi nanti.';\n }\n\n return $response->json()['choices'][0]['message']['content'] ?? 'Maaf, belum ada rekomendasi.';\n }\n}\n"}, "c3749914b158133126b729f11b3106cd213ae497": {"t": 1785756355.8664188, "n": 2588, "h": "a3bce1a46342061f", "c": "post('https://api.deepseek.com/chat/completions', [\n 'model' => 'deepseek-chat',\n 'messages' => [\n ['role' => 'user', 'content' => $prompt]\n ],\n 'temperature' => 1.0,\n 'stream' => false\n ]);\n\n if (!$response->successful()) {\n Log::error('DeepSeek API error', [\n 'status' => $response->status(),\n 'body' => $response->body(),\n ]);\n return 'Gagal menghubungi AI. Coba lagi nanti.';\n }\n\n return $response->json()['choices'][0]['message']['content'] ?? 'Maaf, belum ada rekomendasi.';\n }\n}\n"}, "c810aaa3e9bfa6bbb5fe6f899e7d7c3d1613ad94": {"t": 1786068313.885373, "n": 2979, "h": "cb161001582596c4", "c": "post('https://api.deepseek.com/chat/completions', [\n // 'model' => 'deepseek-chat',\n // 'messages' => [\n // ['role' => 'user', 'content' => $prompt]\n // ],\n // 'temperature' => 1.0,\n // 'stream' => false\n // ]);\n $response = Http::withToken(env('OPENAPI_KEY'))\n ->post('https://api.openai.com/v1/chat/completions', [\n 'model' => 'gpt-4o-mini',\n // 'max_tokens' => 100,\n 'messages' => [\n ['role' => 'system', 'content' => $prompt]\n ],\n 'temperature' => 0.7,\n ]);\n\n if (!$response->successful()) {\n Log::error('API error', [\n 'status' => $response->status(),\n 'body' => $response->body(),\n ]);\n return 'Gagal menghubungi AI. Coba lagi nanti.';\n }\n\n return $response->json()['choices'][0]['message']['content'] ?? 'Maaf, belum ada rekomendasi.';\n }\n}\n"}}}}