Repository navigation
fix(spreadsheetbench): route codegen calls to the configured target backend - #446
Conversation
…ackend The single and multi codegen modes built an Azure client up front and called it directly, whatever target_backend was set to. An openai_compatible, claude_chat, minimax_chat or copilot_chat target failed with "Azure OpenAI endpoint is not configured", or went to Azure when an endpoint was also set, and qwen_chat skipped its qwen_chat_* settings. _chat_call now sends every target other than openai_chat through chat_target_messages, as ReAct mode does. The openai_chat path is unchanged and builds its Azure client lazily. Fixes microsoft#445 Signed-off-by: NNIIOVO <haimingni44@gmail.com>
Keep both CHANGELOG entries; no other change.
|
Merged, thank you. SpreadsheetBench |
Fixes #445
The
singleandmulticodegen modes built an Azure client up front and called it directly, whatevertarget_backendwas set to. So anopenai_compatible,claude_chat,minimax_chatorcopilot_chattarget failed with "Azure OpenAI endpoint is not configured". If an Azure endpoint was also set, the call went to Azure instead.What changes:
_chat_callnow sends every target other thanopenai_chatthroughchat_target_messages, as ReAct mode already does.openai_chatpath is unchanged. It still builds the Azure client, now lazily inside_chat_callinstead of inrun_single/run_multi, and its requests are the same as before.max_completion_tokens=16384. It now uses the qwen backend, soqwen_chat_max_tokens(default 8000), temperature and thinking mode apply, the same as in ReAct mode.Tests:
tests/test_spreadsheetbench_codegen_routing.py.openai_compatibletarget reach that client and never build an Azure client. Both tests fail on main.openai_chattarget still goes through the Azure client.tests/test_sleep_adopt_skill_subset.pyalso fail on main: macOS temp dirs sit under/var→/private/var, so the error message differs.