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 permission_error #975

Open
Rapahannock opened this issue Dec 22, 2023 · 12 comments
Open

Claude permission_error #975

Rapahannock opened this issue Dec 22, 2023 · 12 comments
Labels

Comments

@Rapahannock
Copy link

Describe the bug
A clear and concise description of what the bug is.

Claude produces the following when searched:

{"error":{"type":"permission_error","message":"Invalid model","code":"model_not_allowed"}}

Desktop (please complete the following information):

  • OS: Windows 11, Android
  • Browser: Chrome, Lemur
  • ChatHub Version: 1.45.4
    Screenshot 2023-12-22 162550
@nolecruiser
Copy link

nolecruiser commented Dec 22, 2023

{"error":{"type":"permission_error","message":"Invalid model","code":"model_not_allowed"}}

I can not use Claude. ( I purchased ChatHub program )

@wong2
Copy link
Collaborator

wong2 commented Dec 23, 2023

Are you using API mode for Claude?

@Rapahannock
Copy link
Author

Are you using API mode for Claude?

I'm using Webapp mode. I don't have an API key nor access to Claude Console. POE mode works however. Similar issue happened last month. Thanks

@nolecruiser
Copy link

nolecruiser commented Dec 23, 2023 via email

@wong2
Copy link
Collaborator

wong2 commented Dec 25, 2023

@Rapahannock @nolecruiser Can you chat normally at https://claude.ai ?

@Rapahannock
Copy link
Author

@Rapahannock @nolecruiser Can you chat normally at https://claude.ai ?

Yes its fine when chatting directly from the claude.ai site. Also can, using OpenRouter and POE mode, but with Webapp mode I get the error.

@wong2
Copy link
Collaborator

wong2 commented Dec 25, 2023

@Rapahannock Unfortunately I can't reproduce this myself. Do you know how to debug HTTP request with Chrome devtools?

@Rapahannock
Copy link
Author

Get the following API Request-

Headers:

Request URL: https://claude.ai/api/append_message
Request Method: POST
Status Code: 403 Forbidden
Remote Address: 160.79.104.10:443
Referrer Policy: strict-origin-when-cross-origin

Payload:

{organization_uuid: "1ad7b662-d56d-444d-8d2d-14ba4436bb56",…}
attachments: []
completion
: {prompt: "test", model: "claude-2.1"}
conversation_uuid: "f2bbe4b2-ab96-4d6a-9563-6453741fab24"
organization_uuid: "1ad7b662-d56d-444d-8d2d-14ba4436bb56"
text: "test"

Preview:

{error: {type: "permission_error", message: "Invalid model", code: "model_not_allowed"}}
error: {type: "permission_error", message: "Invalid model", code: "model_not_allowed"}

Response:

{
"error": {
"type": "permission_error",
"message": "Invalid model",
"code": "model_not_allowed"
}
}

@wong2
Copy link
Collaborator

wong2 commented Dec 25, 2023

@Rapahannock Great! Can you do the same on https://claude.ai and debug the request, so we can compare what's the difference.

@Rapahannock
Copy link
Author

Got the following from https://claude.ai/. Thanks

Headers:

Request URL: https://claude.ai/api/append_message
Request Method: POST
Status Code: 200 OK
Remote Address: 160.79.104.10:443
Referrer Policy: strict-origin-when-cross-origin

Payload:

{completion: {prompt: "test", timezone: "America/New_York", model: "claude-2.0"},…}
attachments: []
completion: {prompt: "test", timezone: "America/New_York", model: "claude-2.0"}
conversation_uuid: "24d949b4-0a45-4846-91da-f0f68b699720"
organization_uuid: "1ad7b662-d56d-444d-8d2d-14ba4436bb56"
text: "test"

Preview:

data: {"type":"completion","id":"compl_01WTSgfA8waY7nkwKz8NyD2B","completion":" Hello","stop_reason":null,"model":"claude-2.0","stop":null,"log_id":"compl_01WTSgfA8waY7nkwKz8NyD2B","messageLimit":{"type":"within_limit"}}

data: {"type":"completion","id":"compl_01WTSgfA8waY7nkwKz8NyD2B","completion":"!","stop_reason":null,"model":"claude-2.0","stop":null,"log_id":"compl_01WTSgfA8waY7nkwKz8NyD2B","messageLimit":{"type":"within_limit"}}

data: {"type":"completion","id":"compl_01WTSgfA8waY7nkwKz8NyD2B","completion":" What","stop_reason":null,"model":"claude-2.0","stop":null,"log_id":"compl_01WTSgfA8waY7nkwKz8NyD2B","messageLimit":{"type":"within_limit"}}

data: {"type":"completion","id":"compl_01WTSgfA8waY7nkwKz8NyD2B","completion":" can","stop_reason":null,"model":"claude-2.0","stop":null,"log_id":"compl_01WTSgfA8waY7nkwKz8NyD2B","messageLimit":{"type":"within_limit"}}

data: {"type":"completion","id":"compl_01WTSgfA8waY7nkwKz8NyD2B","completion":" I","stop_reason":null,"model":"claude-2.0","stop":null,"log_id":"compl_01WTSgfA8waY7nkwKz8NyD2B","messageLimit":{"type":"within_limit"}}

data: {"type":"completion","id":"compl_01WTSgfA8waY7nkwKz8NyD2B","completion":" help","stop_reason":null,"model":"claude-2.0","stop":null,"log_id":"compl_01WTSgfA8waY7nkwKz8NyD2B","messageLimit":{"type":"within_limit"}}

data: {"type":"completion","id":"compl_01WTSgfA8waY7nkwKz8NyD2B","completion":" with","stop_reason":null,"model":"claude-2.0","stop":null,"log_id":"compl_01WTSgfA8waY7nkwKz8NyD2B","messageLimit":{"type":"within_limit"}}

data: {"type":"completion","id":"compl_01WTSgfA8waY7nkwKz8NyD2B","completion":" today","stop_reason":null,"model":"claude-2.0","stop":null,"log_id":"compl_01WTSgfA8waY7nkwKz8NyD2B","messageLimit":{"type":"within_limit"}}

data: {"type":"completion","id":"compl_01WTSgfA8waY7nkwKz8NyD2B","completion":"?","stop_reason":null,"model":"claude-2.0","stop":null,"log_id":"compl_01WTSgfA8waY7nkwKz8NyD2B","messageLimit":{"type":"within_limit"}}

data: {"type":"completion","id":"compl_01WTSgfA8waY7nkwKz8NyD2B","completion":"","stop_reason":"stop_sequence","model":"claude-2.0","stop":"\n\nHuman:","log_id":"compl_01WTSgfA8waY7nkwKz8NyD2B","messageLimit":{"type":"within_limit"}}

@wong2
Copy link
Collaborator

wong2 commented Dec 25, 2023

@Rapahannock Thanks, so the difference is the model name (claude-2.1 vs claude-2.0), I will figure this out.

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants