langflow-ai/langflow · error · InvalidChatInputError

If you pass an input_value to the chat input, you cannot pas

Error message

If you pass an input_value to the chat input, you cannot pass a tweak with the same name.

What it means

Error "If you pass an input_value to the chat input, you cannot pass a tweak with the same name." thrown in langflow-ai/langflow.

Source

Thrown at src/backend/base/langflow/api/v1/endpoints.py:221

    # and if its input_value is not None
    # if so, we raise an error
    if not input_request.tweaks:
        return

    for key, value in input_request.tweaks.items():
        if not isinstance(value, dict):
            continue

        input_value = value.get("input_value")
        if input_value is None:
            continue

        request_has_input = input_request.input_value is not None

        if any(chat_key in key for chat_key in ("ChatInput", "Chat Input")):
            if request_has_input and input_request.input_type == "chat":
                msg = "If you pass an input_value to the chat input, you cannot pass a tweak with the same name."
                raise InvalidChatInputError(msg)

        elif (
            any(text_key in key for text_key in ("TextInput", "Text Input"))
            and request_has_input
            and input_request.input_type == "text"
        ):
            msg = "If you pass an input_value to the text input, you cannot pass a tweak with the same name."
            raise InvalidChatInputError(msg)


async def simple_run_flow(
    flow: Flow,
    input_request: SimplifiedAPIRequest,
    *,
    stream: bool = False,
    api_key_user: User | None = None,
    event_manager: EventManager | None = None,
    context: dict | None = None,

View on GitHub (pinned to 976ec789d2)

Solutions

  1. Remove the tweak that shares the same name as input_value, or drop input_value and use only the tweak.

When it happens

Trigger: Occurs when a caller passes both an input_value for a chat input and a tweak with the same input name in the same /run request, creating an ambiguous override.

Common situations: See trigger scenarios.


AI-assisted analysis of langflow-ai/langflow@976ec789d2 (2026-08-14). Data as JSON: /api/errors/6f86f7471e9e51ad. Report an issue: GitHub.