#Provider Returned Error
26 messages · Page 1 of 1 (latest)
if using the API, the response object should have extra error metadata
i dont get it. Mine has code unk. Can you give me an example?
here is your ping @swift warren
Thanks - what model are you using? and this is via the API yes? @lilac forum
I am using Gemini flash 2.0 experimental. Yes, I use api.
How are you calling it? OpenAI client? or curl?
The raw response object has extra fields (here's an example)
ChatCompletion(id=None, choices=None, created=None, model=None, object=None, system_fingerprint=None, usage=None, error={'message': 'Provider returned error', 'code': 400, 'metadata': {'raw': {'__kind': 'OK', 'data': '{"error":{"message":"The first message (except the system message) of deepseek-reasoner must be a user message, but an assistant message detected.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}'}, 'provider_name': 'DeepSeek'}}, user_id='user_2qdDJAxqJbbravc98g4Krcxb6IN')
Which includes the full error message
{"error":{"message":"The first message (except the system message) of deepseek-reasoner must be a user message, but an assistant message detected.","type":"invalid_request_error","param":null,"code":"invalid_request_error"}}
I am not really sure. I was just copy the url into thirt app, and put the api keys.
Ah, what app are you using?
this is what I am looking for. Where to find it?
This is from my own code script, I can access the full response object from the API (Via openai client)
Janitor AI, but don't get it wrong, I am not a pervert. You know gemini won't allow weird coversation.
It's possible if you open up devtools and try to make a chat again, in the network logs you may be able to locate the API call and it's full response
let me check, wait.
is the dev tools located on openrouter website?
or the third party site?
dear god, I am using, but there is an app to show the inspect element for phone. Lemme try.
yeah, I'll ping you of I can manage to see it.