chathub
chathub copied to clipboard
Claude permission_error
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
{"error":{"type":"permission_error","message":"Invalid model","code":"model_not_allowed"}}
I can not use Claude. ( I purchased ChatHub program )
Are you using API mode for Claude?
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
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: @.***>
@Rapahannock @nolecruiser Can you chat normally at https://claude.ai ?
@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 Unfortunately I can't reproduce this myself. Do you know how to debug HTTP request with Chrome devtools?
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 Great! Can you do the same on https://claude.ai and debug the request, so we can compare what's the difference.
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 Thanks, so the difference is the model name (claude-2.1 vs claude-2.0), I will figure this out.