File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,8 @@ def make_arg_parser(parser: FlexibleArgumentParser) -> FlexibleArgumentParser:
227
227
"--expand-tools-even-if-tool-choice-none" ,
228
228
action = "store_true" ,
229
229
default = False ,
230
- help = "[DEPRECATED] Include tool definitions in prompts "
230
+ deprecated = True ,
231
+ help = "Include tool definitions in prompts "
231
232
"even when tool_choice='none'. "
232
233
"This is a transitional option that will be removed in v0.10.0. "
233
234
"In v0.10.0, tool definitions will always be included regardless of "
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ async def create_chat_completion(
181
181
and not self .expand_tools_even_if_tool_choice_none ):
182
182
assert request .tools is not None
183
183
if len (request .tools ) > 0 :
184
- logger .warning (
184
+ logger .warning_once (
185
185
"Tools are specified but tool_choice is set to 'none' "
186
186
"and --expand-tools-even-if-tool-choice-none is not "
187
187
"enabled. Tool definitions will be excluded from the "
You can’t perform that action at this time.
0 commit comments