Skip to content

Possible bug with ChatOpenRouter #5610

@bgzt11-debug

Description

@bgzt11-debug

Describe the bug

Hi everybody,

Is anyone else experiencing a bug with the LLM Agent/Model ChatOpenRouter? Yesterday it was working perfectly fine, but today I noticed it can't parse the API response correctly. I've tried with three OpenRouter models, for example: meta-llama/llama-3.3-70b-instruct:free, and it returns the following error:

Image

Then I tried with google/gemini-2.0-flash-exp:free:

Image

OpenRouter report:

"""{
"id": 36431283073,
"generation_id": "gen-1766400841-xPzu314BSaQNdOSFlEL0",
"provider_name": "Google",
"model": "google/gemini-2.0-flash-exp:free",
"app_id": null,
"external_user": null,
"streamed": true,
"cancelled": false,
"generation_time": 54,
"latency": 357,
"moderation_latency": null,
"created_at": "2025-12-22T10:54:02.388905+00:00",
"tokens_prompt": 269,
"tokens_completion": 6,
"native_tokens_prompt": 295,
"native_tokens_completion": 6,
"native_tokens_completion_images": 0,
"native_tokens_reasoning": 0,
"native_tokens_cached": 0,
"num_media_prompt": null,
"num_input_audio_prompt": null,
"num_media_completion": 0,
"num_search_results": null,
"origin": "",
"usage": 0,
"usage_upstream": 0,
"finish_reason": "stop",
"usage_cache": null,
"usage_data": null,
"usage_web": null,
"usage_file": 0,
"byok_usage_inference": 0,
"provider_responses": [
{
"status": 200,
"is_byok": false,
"latency": 357,
"endpoint_id": "65df650a-3eae-46b0-b5b0-87546ca90cc3",
"provider_name": "Google"
}
],
"provider_api_key_id": null,
"api_type": "completions",
"is_byok": false,
"native_finish_reason": "STOP"
}"""

Is this a bug or an update to the source point that has changed the logic of flowise?, Do you know how I can view the trace or debug the API response? Sometimes it only refers to a generic error. I would greatly appreciate it.

Regards,

To Reproduce

1.- Go to LLM Agent
2.- Choose Model ChatOpenRouter
3.- Choose some model mentioned from endpoint
4.- Test it

Expected behavior

The flow must go with total normaly like this:

Image

Screenshots

No response

Flow

No response

Use Method

None

Flowise Version

No response

Operating System

None

Browser

None

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions