mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
Remove unused tool_calls handling in AISuiteLLM chat completion method for cleaner code.
This commit is contained in:
3
src/crewai/llms/third_party/ai_suite.py
vendored
3
src/crewai/llms/third_party/ai_suite.py
vendored
@@ -18,11 +18,8 @@ class AISuiteLLM(BaseLLM):
|
|||||||
available_functions: Optional[Dict[str, Any]] = None,
|
available_functions: Optional[Dict[str, Any]] = None,
|
||||||
) -> Union[str, Any]:
|
) -> Union[str, Any]:
|
||||||
completion_params = self._prepare_completion_params(messages, tools)
|
completion_params = self._prepare_completion_params(messages, tools)
|
||||||
# print(f"Completion params: {completion_params}")
|
|
||||||
response = self.client.chat.completions.create(**completion_params)
|
response = self.client.chat.completions.create(**completion_params)
|
||||||
|
|
||||||
tool_calls = getattr(response.choices[0].message, "tool_calls", [])
|
|
||||||
|
|
||||||
return response.choices[0].message.content
|
return response.choices[0].message.content
|
||||||
|
|
||||||
def _prepare_completion_params(
|
def _prepare_completion_params(
|
||||||
|
|||||||
Reference in New Issue
Block a user