icebaker / ruby-nano-bots

Ruby Implementation of Nano Bots: small, AI-powered bots that can be easily shared as a single file, designed to support multiple providers such as Anthropic Claude, Cohere Command, Google Gemini, Maritaca AI, Mistral AI, Ollama, OpenAI ChatGPT, and others, with support for calling tools (functions).
https://rubygems.org/gems/nano-bots
MIT License
79 stars 10 forks source link

Gemini Stream Issues and System Messages Support #10

Closed icebaker closed 6 months ago

icebaker commented 6 months ago

Google Gemini:

Gemini's finishReason does not have the same behavior as OpenAI's, so we should not use it as a reference for the end of streaming. I'm not sure if this is a bug from the Google Gemini REST API or expected behavior.

Additionally: