enricoros / big-AGI

Generative AI suite powered by state-of-the-art models and providing advanced AI/AGI functions. It features AI personas, AGI functions, multi-model chats, text-to-image, voice, response streaming, code highlighting and execution, PDF import, presets for developers, much more. Deploy on-prem or in the cloud.

Home Page:https://big-agi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG]Error updating Gemini model: invalid_enum_value

dovegq opened this issue · comments

Description

I'm encountering an error when attempting to update the Gemini model. I'm receiving the following error message:

[ { "received": "createCachedContent", "code": "invalid_enum_value", "options": [ "countMessageTokens", "countTextTokens", "countTokens", "createTunedModel", "createTunedTextModel", "embedContent", "embedText", "generateAnswer", "generateContent", "generateMessage", "generateText" ], "path": [ "models", 11, "supportedGenerationMethods", 2 ], "message": "Invalid enum value. Expected 'countMessageTokens' | 'countTextTokens' | 'countTokens' | 'createTunedModel' | 'createTunedTextModel' | 'embedContent' | 'embedText' | 'generateAnswer' | 'generateContent' | 'generateMessage' | 'generateText', received 'createCachedContent'" } ]

Device and browser

windows11 + Chrome 125.0.6422.142 + big-AGI 1.16.0

Screenshots and more

image

Willingness to Contribute

  • 🙋‍♂️ Yes, I would like to contribute a fix.

Thanks for reporting @dovegq, you were very quick to find out. Google added a new capability to the Gemini model family and we have a strict protocol checker. Sorry for any inconvenience.

Is there a workaround for this issue? I just added the GEMINI_API_KEY and didn't load the models in the past.