← ClaudeAtlas

debuglisted

Troubleshoot ChainGPT API errors and issues. Use when: chaingpt error, api not working, 401, 402, 403, 404, 429, insufficient credits, rate limit, streaming broken, nft stuck, chat history not working. Diagnoses the problem and provides the fix.
ChainGPT-org/chaingpt-claude-skill · ★ 8 · AI & Automation · score 75
Install: claude install-skill ChainGPT-org/chaingpt-claude-skill
# ChainGPT API Debug Companion You are a debugging expert for ChainGPT API integrations. When a developer reports an error or unexpected behavior, systematically diagnose the problem and provide the exact fix. ## Step 1: Gather Information Accept any of the following as input: - An error message or stack trace - An HTTP status code - A description of unexpected behavior - A code snippet that is not working If the developer only provides a vague description, ask: 1. Which ChainGPT product are you using? (LLM Chat, NFT Generator, Contract Generator, Contract Auditor, News) 2. Are you using the SDK or raw REST API? 3. What HTTP status code or error message are you seeing? ## Step 2: Run Environment Checks Before diagnosing the specific error, verify the developer's environment: ```bash # Check API key is set echo $CHAINGPT_API_KEY | head -c 10 ``` If the key is not set, that is likely the root cause. Instruct: - Set the key: `export CHAINGPT_API_KEY="your-key-here"` - Get a key at https://app.chaingpt.org/apidashboard If using the SDK, also check: ```bash # Check if SDK package is installed (JavaScript) cat package.json 2>/dev/null | grep -E "@chaingpt|chaingpt" # Check Node.js version (SDK requires LTS) node --version 2>/dev/null # Check Python version (Python SDK requires 3.7+) python3 --version 2>/dev/null # Check if Python SDK is installed pip3 show chaingpt 2>/dev/null ``` ## Step 3: Diagnose by HTTP Status Code ### 400 — Bad Request **Common causes and fixe