tia/CLAUDE.md

34 lines
No EOL
841 B
Markdown

# AI Integration Debugging Guide
## Problem: "Invalid model name"
```bash
# 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:
```bash
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
```bash
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.