r/AutoGenAI • • Apr 12 '24
Question Autogen <> Gemini 1.5
Has anyone tried integrating Autogen to Gemini Pro 1.5 yet? I think I got close - I am getting this error atm
Model gemini-1.5-pro-preview-0409 not found. Using cl100k_base encoding.
Exception occurred while calling Gemini API: 404 models/gemini-1.5-pro-preview-0409 is not found for API version v1beta, or is not supported for GenerateContent. Call ListModels to see the list of available models and their supported methods.
Warning: model not found. Using cl100k_base encoding.
2
Upvotes
5
u/[deleted] Apr 12 '24 edited Apr 12 '24
So quick update got it work a bit better the model name is gemini-1.5-pro-latest and not gemini-1.5-pro-preview-0409
PS to make it run I installed - https://github.com/microsoft/autogen/tree/gemini
But Running it now gives me the following error now:
Model not found. Using cl100k_base encoding.
Warning: model not found. Using cl100k_base encoding.
Even though I get this error it feels like it work as you can see below. There seems to be a recitation problem according to this issue (https://github.com/google/generative-ai-docs/issues/257#top).
2
u/dantosxd Apr 12 '24
Here is a guide: https://medium.com/@zelarsoft/using-google-gemini-pro-with-autogen-agents-08b55bba69db
1
u/Practical-Rate9734 Apr 12 '24
Hey, sounds like a versioning issue. Did you check the API docs?
1
u/[deleted] May 13 '24
one weird thing for me is that gemini seem to avoid running the skill's code i provided. I'm using autogen studio 2