google-gemini / generative-ai-swift

The official Swift library for the Google Gemini API
https://ai.google.dev/gemini-api/docs/get-started/tutorial?lang=swift
Apache License 2.0
864 stars 131 forks source link

Make system instruction accept variadic `String...` #155

Closed andrewheard closed 2 months ago

andrewheard commented 2 months ago

Updated the GenerativeModel constructor taking systemInstruction: String (from #152) to accept a variadic String.... The Gemini 1.5 model supports multiple text-only system instructions.

andrewheard commented 2 months ago

As discussed, please add an API test for multiple strings passed

@paulb777 Done.