Skip to content

Odd issue using Gemini model - chat enters loop #3

Open
@iainwallacebms

Description

@iainwallacebms

Very exciting package, thanks

I was able to install it (via remotes rather than pak) and run it with our internal Azure endpoint

        querychat_config <- querychat_init(mtcars,
                                           create_chat_func = purrr::partial(ellmer::chat_azure, 
                                                                       endpoint = Sys.getenv('endpoint'),
                                                                      api_key = Sys.getenv('key'),
                                                                      api_version = "2024-08-01-preview",
                                                                     deployment_id = "gpt-4o-global")

However when I used a gemini model, the chat just goes in a loop and eventually hits a rate limit erroring out.

Image

         querychat_config <- querychat_init(mtcars,
                                       create_chat_func = purrr::partial(ellmer::chat_gemini, 
                                                                      api_key =Sys.getenv('GEMINI_KEY'),
                                                                     model = 'gemini-2.0-pro-exp-02-05'))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions