diff --git a/back/build_query/query_chain.py b/back/build_query/query_chain.py index 56ed821..c29f44e 100644 --- a/back/build_query/query_chain.py +++ b/back/build_query/query_chain.py @@ -393,6 +393,8 @@ async def _handle_other(state: QueryState): result = await chain.ainvoke({"descriptions": descriptions}) except Exception as exc: if is_vertex_permission_error(exc): + # Keep this single-argument call compatible with integrations that + # replace the formatter (including existing API/UI tests). error_msg = format_vertex_permission_message(get_llm_model()) return { "messages": [