Skip to content
New issue

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

Claude meme coin analyst #18

Open
ribery77 opened this issue Apr 3, 2024 · 0 comments
Open

Claude meme coin analyst #18

ribery77 opened this issue Apr 3, 2024 · 0 comments

Comments

@ribery77
Copy link

ribery77 commented Apr 3, 2024

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant