chathub icon indicating copy to clipboard operation
chathub copied to clipboard

Claude permission_error

Open Rapahannock opened this issue 1 year ago • 11 comments

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

Rapahannock avatar Dec 22 '23 21:12 Rapahannock

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

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

nolecruiser avatar Dec 22 '23 22:12 nolecruiser

Are you using API mode for Claude?

wong2 avatar Dec 23 '23 14:12 wong2

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

Rapahannock avatar Dec 23 '23 15:12 Rapahannock

I am using webmode.

2023년 12월 23일 (토) 오후 11:38, wong2 @.***>님이 작성:

Are you using API mode for Claude?

— Reply to this email directly, view it on GitHub https://github.com/chathub-dev/chathub/issues/975#issuecomment-1868307000, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASBHBGQHASGEGVQKPT6OYJDYK3UFJAVCNFSM6AAAAABBAI6JQ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGMYDOMBQGA . You are receiving this because you commented.Message ID: @.***>

nolecruiser avatar Dec 23 '23 19:12 nolecruiser

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

wong2 avatar Dec 25 '23 03:12 wong2

@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.

Rapahannock avatar Dec 25 '23 03:12 Rapahannock

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

wong2 avatar Dec 25 '23 03:12 wong2

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" } }

Rapahannock avatar Dec 25 '23 03:12 Rapahannock

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

wong2 avatar Dec 25 '23 03:12 wong2

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"}}

Rapahannock avatar Dec 25 '23 03:12 Rapahannock

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

wong2 avatar Dec 25 '23 03:12 wong2