tia/CLAUDE.md

841 B

AI Integration Debugging Guide

Problem: "Invalid model name"

# Check available models
curl -s "https://llm.manohargupta.com/v1/models" \
  -H "Authorization: Bearer sk-tiger-gateway-..."

Use model name from response: minimax-2.7 (not tiger-minimax)

Problem: Empty response

Add debug logging and check server health:

curl -s "https://llm.manohargupta.com/health"

Problem: Network errors

  • Use full domain: https://llm.manohargupta.com (not internal hostname)
  • Add https:// prefix

Test Script

curl -s -X POST "https://llm.manohargupta.com/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-tiger-gateway-YOUR_KEY" \
  -d '{"model":"minimax-2.7","messages":[{"role":"user","content":"hi"}]}'

See /docs/debugging.md for full guide.