Skip to content

Instantly share code, notes, and snippets.

@Kurry
Created October 12, 2023 04:14
Show Gist options
  • Save Kurry/60e42ca6b95b65ea3ad67a99d9c2b60a to your computer and use it in GitHub Desktop.
Save Kurry/60e42ca6b95b65ea3ad67a99d9c2b60a to your computer and use it in GitHub Desktop.
def analyze_with_claude_2(ten_q_content):
url = "https://api.promptperfect.jina.ai/your-api-endpoint"
headers = {"Content-Type": "application/json"}
response = requests.post(url, headers=headers, json={"parameters": {"earnings_call_transcript": ten_q_content}})
if response.status_code == 200:
return response.json() # Assuming the response contains the risks identified
else:
print(response.text)
return []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment