artificial-intelligencegoogle-geminims-autogen

Integrating Autogen with Gemini Pro's APi


with the release of Gemini pro model they are offering free API for token usage , but within some limit, My question is can we integrate Autogen library with New Gemini pro api

I am trying to connect with autogen somehow i am getting error of api incorrect ,use openai api, i have my config list as

config_list = [ { 'model': 'gemini-pro', 'api_key': '', },

]


Solution

  • what version of autogen are you using, try using the latest version and specify. In the version 0.2.27

    [
        {
            "model": "gemini-pro",
            "api_key": "BREMBO",
            "api_type": "google"
        }
    ]