File tree Expand file tree Collapse file tree 4 files changed +5
-11
lines changed
Expand file tree Collapse file tree 4 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ def test_4o_mini_on_miniwob_tiny_test():
122122
123123
124124if __name__ == "__main__" :
125- test_timeout_ray ()
125+ # test_timeout_ray()
126126 # test_4o_mini_on_miniwob_tiny_test()
127127 # test_launch_system_ray()
128128 # test_launch_system_sequntial()
Original file line number Diff line number Diff line change @@ -36,9 +36,7 @@ def create_mock_openai_chat_completion(
3636 )
3737 tool_call_mock .id = tc ["id" ]
3838 tool_call_mock .type = tc ["type" ]
39- tool_call_mock .function = MagicMock (
40- spec = openai .types .chat .chat_completion_message_tool_call .Function
41- )
39+ tool_call_mock .function = MagicMock ()
4240 tool_call_mock .function .name = tc ["function" ]["name" ]
4341 tool_call_mock .function .arguments = tc ["function" ]["arguments" ]
4442 message .tool_calls .append (tool_call_mock )
@@ -800,4 +798,5 @@ def test_tool_call_to_python_code():
800798
801799
802800if __name__ == "__main__" :
803- test_tool_call_to_python_code ()
801+ # test_tool_call_to_python_code()
802+ # test_openai_chat_completion_model_parse_and_cost()
Original file line number Diff line number Diff line change @@ -27,11 +27,6 @@ def test_get_action_decorator():
2727OPENROUTER_API_KEY_AVAILABLE = os .environ .get ("OPENROUTER_API_KEY" ) is not None
2828
2929OPENROUTER_MODELS = (
30- "openai/o1-mini-2024-09-12" ,
31- "openai/o1-preview-2024-09-12" ,
32- "openai/gpt-4o-2024-08-06" ,
33- "openai/gpt-4o-2024-05-13" ,
34- "anthropic/claude-3.5-sonnet:beta" ,
3530 "anthropic/claude-3.5-sonnet" ,
3631 "meta-llama/llama-3.1-405b-instruct" ,
3732 "meta-llama/llama-3.1-70b-instruct" ,
Original file line number Diff line number Diff line change 44
55def test_make_exp_args ():
66 """Basic unit test to detect refactoring errors."""
7- exp_args = make_exp_args (AGENT_4o )
7+ exp_args = make_exp_args (AGENT_4o , "https://www.google.com" )
88
99 assert exp_args .agent_args .flags .action .demo_mode == "default"
You can’t perform that action at this time.
0 commit comments