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

NameError: name 'anthropic' is not defined #42

Open
klimentij opened this issue May 2, 2024 · 2 comments
Open

NameError: name 'anthropic' is not defined #42

klimentij opened this issue May 2, 2024 · 2 comments

Comments

@klimentij
Copy link

klimentij commented May 2, 2024

I run

python examples/run_storm_wiki_gpt.py \
    --output_dir output \
    --do-research \
    --do-generate-outline \
    --do-generate-article \
    --do-polish-article

and get

Traceback (most recent call last):
  File "/Users/klim/storm/examples/run_storm_wiki_gpt.py", line 27, in <module>
    from lm import OpenAIModel
  File "/Users/klim/storm/./src/lm.py", line 111, in <module>
    class ClaudeModel(dspy.dsp.modules.lm.LM):
  File "/Users/klim/storm/./src/lm.py", line 196, in ClaudeModel
    (anthropic.RateLimitError,),
     ^^^^^^^^^
NameError: name 'anthropic' is not defined

Update

Fixed by

pip install anthropic

Please update requirements.txt

@Octobot222
This comment was marked as a violation of GitHub Acceptable Use Policies
@shaoyijia
Copy link
Collaborator

Thanks! Just fixed this with commit 463634e. anthropic is only needed when using ClaudeModel.

@stanford-oval stanford-oval deleted a comment from Octobot222 May 2, 2024
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

3 participants