consciousness/agent/tests/raw_test.sh

27 lines
828 B
Bash
Raw Normal View History

#!/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 '.'