claude-api-py icon indicating copy to clipboard operation
claude-api-py copied to clipboard

using model other than claude3

Open xanthexu opened this issue 11 months ago • 1 comments

I am trying to use claude API to run some analysis in parallel. However, it seems like after using several times, it was blocked for too many attempts. Here I am using default model which is Claude3 sonnet model. Does anyone know if it will occur the same problem for Claude 1 or 2 ?

Also, when I loaded model for Claude 2 or Claude-instant . It reports error like this :

HTTP Error 403: Forbidden

My code look like this :

model = constants.Model.CLAUDE_2_P_0
response = claude_obj.send_message(message=prompt, conversation_uuid=conversation_uuid,model=model)
response

This code works for default.model but not for claude 2 and claude 1. Does anyone know how to load claude 2 or claude 1 ? Thanks,

xanthexu avatar Mar 08 '24 06:03 xanthexu

I don't know if claude 1 and 2 are supported anymore, and if you are using Claude with this API you are likely to get rate limited (or banned) if you use it too much. When I tried this with claude 1 and 2 in the past, it also blocked me.

Sonnet was the only API I was able to use, but that will block you after some time. I recommend implementing some rate limiter.

AshwinPathi avatar Mar 14 '24 04:03 AshwinPathi