Skip to content

[Bug]: RAG CLI Chat does not work with GoogleGenAI #20782

@lehoang318

Description

@lehoang318

Bug Description

RAG CLI Chat does not work with GoogleGenAI.

# line 403
next_msg, chat_kwargs, file_api_names = asyncio.run(
    prepare_chat_params(
        self.model, messages, self.file_mode, self._client, **params
    )
)
async def start_chat_repl(self) -> None:
    """
    Start a REPL for chatting with the agent.
    """
  • GoogleGenAI._stream_chat() is in the call flow from RagCLI.start_chat_repl(), therefore, RuntimeError shall be raised.

Version

v0.14.15

Steps to Reproduce

  • Step 1: create a python wrapper for RAG CLI in which Settings.llm is set to GoogleGenAI
  • Step 2: ingest several documents
  • Step 3: run python rag_cli_wrapper.py --chat

Relevant Logs/Tracbacks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageIssue needs to be triaged/prioritized

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions