add option "--expand-tools-even-if-tool-choice-none"#2
add option "--expand-tools-even-if-tool-choice-none"#2
Conversation
|
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add 🚀 |
ef2bf5f to
25aec8d
Compare
…ength from tokenizer config (vllm-project#19660) Signed-off-by: Ye (Charlotte) Qi <yeq@meta.com>
Signed-off-by: Chengji Yao <chengjiyao@google.com> Co-authored-by: mgoin <mgoin64@gmail.com>
Signed-off-by: Andy Xie <andy.xning@gmail.com>
Signed-off-by: Russell Bryant <rbryant@redhat.com>
…llm-project#19626) Signed-off-by: Nick Hill <nhill@redhat.com>
…rts. (vllm-project#19652) Signed-off-by: Shawn Tan <shawntan@ibm.com>
Signed-off-by: Andy Xie <andy.xning@gmail.com>
…oject#19662) Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
Signed-off-by: Bill Nell <bnell@redhat.com>
…h MiniMaxText01ForCausalLM) (vllm-project#19677) Signed-off-by: QscQ <qscqesze@gmail.com>
…19446) Signed-off-by: Russell Bryant <rbryant@redhat.com>
…t#19641) Signed-off-by: conroy-cheers <conroy@corncheese.org>
Signed-off-by: David Xia <david@davidxia.com>
Signed-off-by: nguyenhoangthuan99 <thuanhppro12@gmail.com>
Signed-off-by: Di Liu <liu-di@sjtu.edu.cn>
Signed-off-by: drisspg <drisspguessous@gmail.com>
…er (vllm-project#19686) Signed-off-by: 刘全 <quan.liu2@dbappsecurity.com.cn> Co-authored-by: 刘全 <quan.liu2@dbappsecurity.com.cn>
Signed-off-by: reidliu41 <reid201711@gmail.com> Co-authored-by: reidliu41 <reid201711@gmail.com>
…9851) Signed-off-by: reidliu41 <reid201711@gmail.com> Co-authored-by: reidliu41 <reid201711@gmail.com>
Signed-off-by: Andy Xie <andy.xning@gmail.com>
Signed-off-by: Thomas Parnell <tpa@zurich.ibm.com>
Signed-off-by: nie3e <adrcwiek@gmail.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…llm-project#19164) Signed-off-by: Chendi.Xue <chendi.xue@intel.com>
…-project#18777) Signed-off-by: Vlad Mihailescu <vtmihailescu@gmail.com>
…ts (vllm-project#19901) Signed-off-by: jiang1.li <jiang1.li@intel.com>
Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
…t#19910) Signed-off-by: Rabin Adhikari <rabin.adk1@gmail.com>
Signed-off-by: Isotr0py <2037008807@qq.com>
Signed-off-by: 汪志鹏 <wangzhipeng628@gmail.com>
35649de to
f2bc427
Compare
Signed-off-by: okada shintarou <okada@preferred.jp>
Signed-off-by: okada shintarou <okada@preferred.jp>
Signed-off-by: okada shintarou <okada@preferred.jp>
Signed-off-by: okada shintarou <okada@preferred.jp>
This reverts commit 377f4ac3d47d67ca05ed2df6054aab6faec02b4d. Signed-off-by: okada shintarou <okada@preferred.jp>
Signed-off-by: okada shintarou <okada@preferred.jp>
9559897 to
e282ebb
Compare
Signed-off-by: okada shintarou <okada@preferred.jp>
Signed-off-by: okada shintarou <okada@preferred.jp>
Co-authored-by: Aaron Pham <Aaronpham0103@gmail.com> Signed-off-by: okada shintarou <okada@preferred.jp>
8750191 to
90eabb2
Compare
Signed-off-by: okada shintarou <okada@preferred.jp>
…ect#26445) Signed-off-by: Nick Hill <nhill@redhat.com>
…3058) Signed-off-by: ramos <49182011+nemoramo@users.noreply.github.com> Signed-off-by: mayufeng <mayufeng@example.com> Co-authored-by: mayufeng <mayufeng@example.com>
Add option to include tool definitions even when tool_choice is 'none'
Summary
This PR adds a new command-line option
--expand-tools-even-if-tool-choice-nonewhich allows including tool definitions in prompts even whentool_choice='none'.Motivation
In the current implementation, when
tool_choiceis set to'none', all tool definitions are removed from the request, preventing the model from seeing the tool schemas. This change enables a workflow where:tool_choice='none')This is useful for:
Implementation
--expand-tools-even-if-tool-choice-none(default: False)protocol.pyto no longer remove tools whentool_choice='none'OpenAIServingChatand passed it through from the API server