We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have tried to use this notebook. But I see this error below. Any ideas why?
Analyzing the following coins: ['Dogecoin', 'Shiba Inu', 'Floki'] Analyzing Dogecoin for 2024-04-03... --------------------------------------------------------------------------- KeyError Traceback (most recent call last) [<ipython-input-3-9794b9bbc853>](https://localhost:8080/#) in <cell line: 139>() 147 148 # Select relevant URLs --> 149 relevant_urls = select_relevant_urls(search_results) 150 151 # Get article text from relevant URLs [<ipython-input-3-9794b9bbc853>](https://localhost:8080/#) in select_relevant_urls(search_results) 31 } 32 response = requests.post("https://api.anthropic.com/v1/messages", headers=headers, json=data) ---> 33 response_text = response.json()['content'][0]['text'] 34 numbers = ast.literal_eval(response_text) 35 relevant_indices = [int(num) - 1 for num in numbers] KeyError: 'content'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have tried to use this notebook. But I see this error below. Any ideas why?
The text was updated successfully, but these errors were encountered: