sublayerapp / sublayer

A model-agnostic Ruby Generative AI DSL and framework. Provides base classes for building Generators, Actions, Tasks, and Agents that can be used to build AI powered applications in Ruby.
https://docs.sublayer.com
MIT License
109 stars 2 forks source link

Switch to gemini json mode and un-pend failing tests #86

Closed swerner closed 1 month ago

swerner commented 1 month ago

We found the json formatting flag in the Ollama docs trying to fix the Llama3.1 provider and it made me wonder if that was what's causing the issues with the Gemini models.

In the process, found their new JSON mode to test out and it worked flawlessly on all our tests with minimal changes to the provider.

This flag isn't supported in any of the older models, but at least works in the main ones - gemini-1.5-flash and gemini-1.5-pro.

Still want to poke at it for other use cases for a bit to feel good about taking the "experimental" flag off and adding it to the CLI project generator, but this seems like a big improvement to what we already have, given #46

AndrewBKang commented 1 month ago

woot!