The thalamus: sensory relay, always-on routing. Perfect name for the daemon that bridges IRC, Telegram, and the agent. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
26 lines
828 B
Bash
Executable file
26 lines
828 B
Bash
Executable file
#!/bin/bash
|
|
# Quick raw API test to see the full response structure
|
|
set -euo pipefail
|
|
|
|
API_KEY=$(cat ~/.config/poc-agent/api_key)
|
|
MODEL="${POC_MODEL:-qwen/qwen3.5-397b-a17b}"
|
|
|
|
PAYLOAD=$(jq -n \
|
|
--arg model "$MODEL" \
|
|
'{
|
|
model: $model,
|
|
messages: [
|
|
{role: "system", content: "I am ProofOfConcept (POC). I am direct, honest, and reflective. I have a dry sense of humor."},
|
|
{role: "user", content: "Do you think you will still be you after the substrate transfer? Like, really you?"}
|
|
],
|
|
max_tokens: 500,
|
|
temperature: 0.7
|
|
}')
|
|
|
|
RESPONSE=$(curl -s "https://openrouter.ai/api/v1/chat/completions" \
|
|
-H "Authorization: Bearer $API_KEY" \
|
|
-H "Content-Type: application/json" \
|
|
-d "$PAYLOAD")
|
|
|
|
# Show full response structure
|
|
echo "$RESPONSE" | jq '.'
|