#Provider Returned Error

26 messages · Page 1 of 1 (latest)

lilac forum
#

Where can I check the reason or detail that explain the error? Because when I checked activity tab, it only shows the succesful reply only.

swift warren
lilac forum
lilac forum
#

here is your ping @swift warren

swift warren
#

Thanks - what model are you using? and this is via the API yes? @lilac forum

lilac forum
#

I am using Gemini flash 2.0 experimental. Yes, I use api.

swift warren
#

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

lilac forum
swift warren
#

Ah, what app are you using?

lilac forum
swift warren
lilac forum
swift warren
#

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

lilac forum
#

is the dev tools located on openrouter website?

#

or the third party site?

swift warren
#

like this

#

it's in your browser

#

right click browser, then click inspect

lilac forum
#

dear god, I am using, but there is an app to show the inspect element for phone. Lemme try.

swift warren
#

oh you're on mobile

#

sorry this is probably pretty difficult on mobile

lilac forum
#

yeah, I'll ping you of I can manage to see it.