Repository: ShishirPatil/gorilla
Issue category: Bug Report

Issue:
[BFCL] bugs in function def _multi_threaded_inference(self, test_case, include_input_log: bool, include_state_log: bool):
**Describe the issue**
I encountered an error while running bfcl generate. The error occurred in the file gorilla/berkeley-function-call-leaderboard/bfcl/model_handler/oss_model/base_oss_handler.py in the function def _multi_threaded_inference(self, test_case, include_input_log: bool, include_state_log: bool):.

The line model_responses, metadata = self.inference_single_turn_prompting(test_case, include_input_log, include_state_log) caused a runtime error. I discovered that the function inference_single_turn_prompting only accepts the parameters test_case and include_input_log. However, the code additionally passes include_state_log, which leads to the runtime error. When I removed include_state_log, the code ran successfully.

**ID datapoint**
1. Datapoint / Model Handler permalink: 
2. Issue: 
2. Gorilla repo commit #: 

**What is the issue**
The function inference_single_turn_prompting does not accept include_state_log as a parameter, causing a runtime error when it is passed.
**Proposed Changes**

{
 'previous_datapoint':[], 
 'updated_datapoint':[]
}

**Additional context**
Add any other context about the problem here.



Hints:

Patch:
diff --git a/berkeley-function-call-leaderboard/bfcl/model_handler/oss_model/base_oss_handler.py b/berkeley-function-call-leaderboard/bfcl/model_handler/oss_model/base_oss_handler.py
index c58812641..c3fc3c8e5 100644
--- a/berkeley-function-call-leaderboard/bfcl/model_handler/oss_model/base_oss_handler.py
+++ b/berkeley-function-call-leaderboard/bfcl/model_handler/oss_model/base_oss_handler.py
@@ -224,7 +224,7 @@ def _multi_threaded_inference(self, test_case, include_input_log: bool, include_
             if "multi_turn" in test_case["id"]:
                 model_responses, metadata = self.inference_multi_turn_prompting(test_case, include_input_log, include_state_log)
             else:
-                model_responses, metadata = self.inference_single_turn_prompting(test_case, include_input_log, include_state_log)
+                model_responses, metadata = self.inference_single_turn_prompting(test_case, include_input_log)
         except Exception as e:
             print("-" * 100)
             print(


Test patch: