Skip to content
Closed
9 changes: 9 additions & 0 deletions src/google/adk/models/lite_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,15 @@ async def generate_content_async(
_get_completion_inputs(llm_request)
)

if not messages:
messages = [
ChatCompletionUserMessage(
role="user",
content="Handle the requests as specified in the System Instruction."
)
]


if "functions" in self._additional_args:
# LiteLLM does not support both tools and functions together.
tools = None
Expand Down