{"record":{"id":"6f86f7471e9e51ad","repo":"langflow-ai/langflow","slug":"if-you-pass-an-input-value-to-the-chat-input-you","errorCode":null,"errorMessage":"If you pass an input_value to the chat input, you cannot pass a tweak with the same name.","messagePattern":"If you pass an input_value to the chat input, you cannot pass a tweak with the same name\\.","errorType":"exception","errorClass":"InvalidChatInputError","httpStatus":400,"severity":"error","filePath":"src/backend/base/langflow/api/v1/endpoints.py","lineNumber":221,"sourceCode":"    # and if its input_value is not None\n    # if so, we raise an error\n    if not input_request.tweaks:\n        return\n\n    for key, value in input_request.tweaks.items():\n        if not isinstance(value, dict):\n            continue\n\n        input_value = value.get(\"input_value\")\n        if input_value is None:\n            continue\n\n        request_has_input = input_request.input_value is not None\n\n        if any(chat_key in key for chat_key in (\"ChatInput\", \"Chat Input\")):\n            if request_has_input and input_request.input_type == \"chat\":\n                msg = \"If you pass an input_value to the chat input, you cannot pass a tweak with the same name.\"\n                raise InvalidChatInputError(msg)\n\n        elif (\n            any(text_key in key for text_key in (\"TextInput\", \"Text Input\"))\n            and request_has_input\n            and input_request.input_type == \"text\"\n        ):\n            msg = \"If you pass an input_value to the text input, you cannot pass a tweak with the same name.\"\n            raise InvalidChatInputError(msg)\n\n\nasync def simple_run_flow(\n    flow: Flow,\n    input_request: SimplifiedAPIRequest,\n    *,\n    stream: bool = False,\n    api_key_user: User | None = None,\n    event_manager: EventManager | None = None,\n    context: dict | None = None,","sourceCodeStart":203,"sourceCodeEnd":239,"githubUrl":"https://github.com/langflow-ai/langflow/blob/976ec789d2886a86de109c044d089d68e96c9a35/src/backend/base/langflow/api/v1/endpoints.py#L203-L239","documentation":"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.","triggerScenarios":"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.","commonSituations":"See trigger scenarios.","solutions":["Remove the tweak that shares the same name as input_value, or drop input_value and use only the tweak."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"976ec789d2886a86de109c044d089d68e96c9a35","analyzedAt":"2026-08-14T18:23:12.227Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}