#!/bin/bash
C=$(docker ps --format "{{.Names}}" | grep "friend-deploy" | head -1)
FT=$(docker exec postgres_db psql -U knowledge -d yunwoai -t -A -c "SELECT friend_token FROM user_friend_agents WHERE instance_id='friend-abc1d454';")
echo "=== 模型列表（wget 输出到文件再读）==="
docker exec $C sh -c "wget -qO /tmp/ml.json --header=\"Authorization: Bearer $FT\" http://127.0.0.1:8000/api/llm/channels/1/models; wc -c /tmp/ml.json"
docker exec $C sh -c "head -c 1500 /tmp/ml.json"
echo
