Open ribery77 opened 3 months ago
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'
I have tried to use this notebook. But I see this error below. Any ideas why?