Skip to content

Issue connecting to other models #23

Open
@iainwallacebms

Description

@iainwallacebms

This might be a user error but I was unable to get the default example to work with either of the two options to connect different model. We regularly use ellmer to connect to different models in our corporate environment.

Adding this custom function to the top of the sample app caused the app to crash when loading as it was still trying to connect to open ai

 my_chat_func <- function(system_prompt) {
   return(
     chat_google_gemini(
       api_key = gemini_key,
       system_prompt = system_prompt,
      model = 'gemini-2.0-flash'
     )
   )
 }

The second option resulted in the app loading but the chat interface hanging after typing 'hello'

querychat_config <- querychat_init(mtcars,
                                   create_chat_func = purrr::partial(ellmer::chat_google_gemini, 
                                                                     model = 'gemini-2.0-flash',
                                                                     api_key = gemini_key)

Thanks

Metadata

Metadata

Assignees

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