Welcome to Portkey Forum

Updated 2 weeks ago

Conditional routing error

Getting this error when conditional routing to Openrouter:
"x-clerk-auth-message": "Invalid JWT form. A JWT consists of three parts separated by dots. (reason=token-invalid, token-carrier=header)", "x-clerk-auth-reason": "token-invalid", "x-clerk-auth-status": "signed-out",
V
m
9 comments
Hi! Are you seeing the relevant log on Portkey?
Prima facie, this looks like a provider error and not a Portkey one
It works but getting too long for the first token to appears, and no reasoning tokens showing. Tried another OR model using config
"override_params": { "model": "deepseek/deepseek-r1-distill-qwen-32b
and the behavior and JWT invalid is the same.
Ok and what happens when you make the exact same request directly to openrouter?
OR works great.
I'm requesting through PK user api key with config Conditional Routing inside. No headers because I need the user to provide the api-key.
Another issue I found about OR is that it can't create a prompt. It returns: No Foundation Model or Mode found matching selected AI Provider
Ah yes this is expected because we haven't yet configured OR on the prompt playground - this is coming soon
@mrKa i think it will help to get on a call to resolve this. Let me DM you!
I think it's related to 'error: [OpenAIClient] Known OpenAI error: Error: missing finish_reason for choice 0'.
Librechat is pushing a fix
Add a reply
Sign up and join the conversation on Discord