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
96 stars 10 forks source link

Fixing Gemini system instructions #22

Closed icebaker closed 5 months ago

icebaker commented 5 months ago

Related to #21

Vertex AI API accepts system_instruction in its payload, but Generative Language API does not and returns a 400 error. This PR fixes it by using different approaches for the different APIs.

Additionally: