Skip to content

Anthropic API seems broken? #48

Description

@shayneoneill

Running Vulnhunter both from a local repo (ps: You probably need to add requests to the requirements) and from docker with a supplied anthropic key I get the following error:

Traceback (most recent call last):
File "/usr/local/bin/vulnhuntr", line 8, in
sys.exit(run())
File "/usr/local/lib/python3.10/site-packages/vulnhuntr/main.py", line 395, in run
initial_analysis_report: Response = llm.chat(user_prompt, response_model=Response)
File "/usr/local/lib/python3.10/site-packages/vulnhuntr/LLMs.py", line 68, in chat
response = self.send_message(messages, max_tokens, response_model)
File "/usr/local/lib/python3.10/site-packages/vulnhuntr/LLMs.py", line 107, in send_message
raise APIStatusError(e.status_code, e.response) from e
vulnhuntr.LLMs.APIStatusError: Received non-200 status code: 404

I tried updating to the latest anthropic api (0.75, according to pypi) and this doesnt seem to fix the matter. The key was generated today and tested with another app, and theres plenty of credits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions