File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -197,9 +197,6 @@ def _request_chat_completion(
197197 request_config = self .model_config_dict .copy ()
198198
199199 if tools :
200- for tool in tools :
201- function_dict = tool .get ('function' , {})
202- function_dict .pop ("strict" , None )
203200 request_config ["tools" ] = tools
204201
205202 request_config = self ._sanitize_config (request_config )
@@ -218,9 +215,6 @@ async def _arequest_chat_completion(
218215 request_config = self .model_config_dict .copy ()
219216
220217 if tools :
221- for tool in tools :
222- function_dict = tool .get ('function' , {})
223- function_dict .pop ("strict" , None )
224218 request_config ["tools" ] = tools
225219
226220 request_config = self ._sanitize_config (request_config )
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ def manager():
3636 return HuggingFaceDatasetManager ()
3737
3838
39+ @pytest .mark .skipif (reason = "Hugging Face token Unauthorized for url" )
3940def test_create_dataset (manager ):
4041 with patch ("huggingface_hub.HfApi.create_repo" ) as mock_create_repo :
4142 mock_create_repo .return_value = {"repo_id" : REPO_ID }
You can’t perform that action at this time.
0 commit comments