high85%
langchain-openai: _consolidate_calls raises UnboundLocalError for unrecognized server tool names
The _consolidate_calls function in langchain_openai.chat_models._compat fails with UnboundLocalError when processing a server_tool_call whose name is not one of the recognized built-in tools (e.g., computer, image_generation). Additionally, a minor control flow issue causes unnecessary evaluation of the file_search condition for web_search calls.
