Genkit Python gemma2

I am trying to use the new genkit for python but im encountering this error.

Exception(f'Failed to to resolve model {model}')
Exception: Failed to to resolve model gemma2

Heres my init


ai = Genkit(
    plugins=[
        Ollama(
            models=[
                ModelDefinition(
                    name='gemma2',
                    api_type=OllamaAPITypes.GENERATE,
                )
            ],
            embedders=[
               EmbeddingModelDefinition(
                   name='nomic-embed-text',
                   dimensions=512,
               )
           ]
        )
    ]
)

Hi @Jason_C

We appreciate you reporting this!

Could you please test with the latest Gemma 3 variants to see if this issue has been resolved? We value your feedback. Thank you!

1 Like