This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Exa Answer API - Intermittent 500 INTERNAL_ERROR on structured output queries | |
| # Usage: EXA_API_KEY=your-key bash exa_repro.sh | |
| # Requires: jq | |
| PAYLOAD=$(cat << 'JSON' | |
| { | |
| "query": "Are there any mainstream news articles with controversies, scandals, lawsuits, legal settlements, or major fines involving Goldman Sachs (goldmansachs.com) OR companies owned by Goldman Sachs?", | |
| "systemPrompt": "Research: Goldman Sachs (goldmansachs.com) and its portfolio companies. Extract reputation issues from news journalism ONLY. Required sources: news articles from established journalism outlets (Reuters, Bloomberg, WSJ, FT, etc.).", | |
| "outputSchema": { |
OlderNewer