Skip to content

LiteLlm root agent stuck on greetings after a couple of dialog #3795

@cl3m3nt

Description

@cl3m3nt

** Please make sure you read the contribution guide and file the issues in the right place. **
Contribution guide.

Describe the bug
While using LiteLLM with gpt-oss-20b or gemma-3n as root agent, the adk web is stuck after a couple of dialogs.

To Reproduce
Please share a minimal code and data to reproduce your problem.
Steps to reproduce the behavior:
root_agent = Agent(
name="my_agent",
model=LiteLlm(
model="openai/gpt-oss",
api_base="http://localhost:1234/v1",
api_key="lm-studio"),
description=("..."),
instruction=("...")
)

  • using gps-oss-20b in LM studio
  • using ag-ui-adk 0.3.2, google-adk 1.17.0

Expected behavior
The root agent is gpt-oss-20b (or gemma-3n). After a couple of successful dialog, the agent is either looping on greetings, or always greetings. It is no longer able to answer something different than greeting nor call tools.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS Apple Silicon M4
  • Python version(python -V): Python 3.12.11
Image
  • ADK version(pip show google-adk): ag-ui-adk 0.3.2, google-adk 1.17.0

Model Information:

  • Are you using LiteLLM: Yes
  • Which model is being used: gpt-oss-20 or gemma-3n

Additional context
When using same models, gemma-3n or gpt-oss-20 through FastAI server + Gradio, there stuck behavior does not occur so far, while still serving models through LM studio and adk. To be noticed in those cases I am using session + runner, while not using session + runner with adk-web interface.

Metadata

Metadata

Labels

answered[Status] This issue has been answered by the maintainermodels[Component] Issues related to model support

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions