obsidian-copilot icon indicating copy to clipboard operation
obsidian-copilot copied to clipboard

Cannot use Claude 3 with error message "request not allowed"

Open haluwong opened this issue 1 year ago • 5 comments

Filled the Claude 3 API Key, select Claude 3 and Chat. Error type: forbidden, Message: request not allowed.

Obsidian-copilot version: 2.5.2 Obsidian: v 1.5.8 (Linux AppImage)

image

Do anyone has same problem?

haluwong avatar Mar 15 '24 09:03 haluwong

I have run into a similar problem. I am using Openrouter and whenever I set the model to Anthropic's model, then I will get the error. If I switched to other models then it works fine.

image

JasonL708 avatar Mar 15 '24 13:03 JasonL708

@haluwong 403 should mean the server got your request but authentication failed. Can you try re-enter the API key?

@JasonL708 OpenRouter nowadays has :free appended to their free models, not sure if this is because they require payment from you for Claude models.

logancyang avatar Mar 15 '24 17:03 logancyang

@haluwong 403 should mean the server got your request but authentication failed. Can you try re-enter the API key?

@JasonL708 OpenRouter nowadays has :free appended to their free models, not sure if this is because they require payment from you for Claude models.

@logancyang The API Key is correct, we have tested it through python in a US server. However, our obsidian is not running in US region, maybe it's the possible cause of 403!? We have tried to open Obsidian with --proxy-server, but it seems it didn't use it when using Claude 3 model. (OpenAI did access through our proxy as we see log in our proxy server but not for Claude 3)

haluwong avatar Mar 18 '24 08:03 haluwong

@haluwong I see. Claude 3 is using a proxy server of its own. You can check the code and disable it by setting the ChatAnthropic URL back to the real claude URL. Then it should use your proxy server.

logancyang avatar Mar 19 '24 00:03 logancyang

@haluwong I see. Claude 3 is using a proxy server of its own. You can check the code and disable it by setting the ChatAnthropic URL back to the real claude URL. Then it should use your proxy server.

I encountered the same issue. Could you please elaborate on your solution?

hulijiashaonian avatar Jul 01 '24 13:07 hulijiashaonian