Files

1 line
2.4 KiB
JSON

{"repo": "bselee/aria", "files": {"check_ds.py": {"3324e1858f58ff5d78808b187626341b0bb3d20a": {"t": 1785747494.301839, "n": 1029, "h": "efb9f4cabd21ddb1", "c": "import subprocess, json\n\nwith open(\"/root/honcho/.env\") as f:\n content = f.read()\n\nfor line in content.splitlines():\n if \"LLM_OPENAI_API_KEY\" in line and \"sk-\" in line:\n key = line.split(\"LLM_OPENAI_API_KEY=\")[-1]...')\n print(f\"Key found: {key[:12]}...{key[-4:]}\")\n \n for model in [\"deepseek-chat\", \"deepseek-v4-flash\"]:\n payload = json.dumps({\n \"model\": model,\n \"messages\": [{\"role\": \"user\", \"content\": \"Say exactly: modelcheck-ok\"}],\n \"max_tokens\": 20\n })\n r = subprocess.run(\n [\"curl\", \"-s\", \"-H\", f\"Authorization: Bearer *** \"-H\", \"Content-Type: application/json\", \"-d\", payload, \"https://api.deepseek.com/v1/chat/completions\"],\n capture_output=True, text=True, timeout=15\n )\n resp = r.stdout.strip()\n print(f\"\\n=== {model} ===\")\n print(resp[:400])\n if r.stderr:\n print(f\"stderr: {r.stderr[:200]}\")\n break\n"}, "365d88dd2ab7d0a13e100d37bea31e908577a0e5": {"t": 1785773565.8425217, "n": 1029, "h": "efb9f4cabd21ddb1", "c": "import subprocess, json\n\nwith open(\"/root/honcho/.env\") as f:\n content = f.read()\n\nfor line in content.splitlines():\n if \"LLM_OPENAI_API_KEY\" in line and \"sk-\" in line:\n key = line.split(\"LLM_OPENAI_API_KEY=\")[-1]...')\n print(f\"Key found: {key[:12]}...{key[-4:]}\")\n \n for model in [\"deepseek-chat\", \"deepseek-v4-flash\"]:\n payload = json.dumps({\n \"model\": model,\n \"messages\": [{\"role\": \"user\", \"content\": \"Say exactly: modelcheck-ok\"}],\n \"max_tokens\": 20\n })\n r = subprocess.run(\n [\"curl\", \"-s\", \"-H\", f\"Authorization: Bearer *** \"-H\", \"Content-Type: application/json\", \"-d\", payload, \"https://api.deepseek.com/v1/chat/completions\"],\n capture_output=True, text=True, timeout=15\n )\n resp = r.stdout.strip()\n print(f\"\\n=== {model} ===\")\n print(resp[:400])\n if r.stderr:\n print(f\"stderr: {r.stderr[:200]}\")\n break\n"}}}}