Releases: google-gemini/generative-ai-swift
Releases · google-gemini/generative-ai-swift
0.5.6
What's Changed
- Add a README for /samples by @markmcd in #202
- Update
main
branch README for PaLM API decommissioning by @andrewheard in #205 - Update version to 0.5.6 by @anupdsouza in #206
New Contributors
Full Changelog: 0.5.5...0.5.6
0.5.5
What's Changed
- Add code execution support by @andrewheard in #196, #198
New Contributors
- @Giom-V made their first contribution in #180
- @MarkDaoust made their first contribution in #191
Full Changelog: 0.5.4...0.5.5
0.5.4
What's Changed
- Add default
RequestOptions.timeout
of 300 seconds by @andrewheard in #170 - Align text and add close keyboard function in sample app by @1998code in #172
- Update models in samples and README to
gemini-1.5-flash-latest
by @andrewheard in #173 - Add
responseSchema
toGenerationConfig
by @andrewheard in #176 - Send
GenerateContentRequest
inCountTokensRequest
by @andrewheard in #175 - Log server error responses without
-GoogleGenerativeAIDebugLogEnabled
by @andrewheard in #177
New Contributors
Full Changelog: 0.5.3...0.5.4
0.5.3
What's Changed
- Add
usageMetadata
toGenerateContentResponse
by @andrewheard in #159 - Re-order the
GenerativeModel
convenience constructors in source by @andrewheard in #160 - Add
responseMIMEType
toGenerationConfig
by @andrewheard in #161 - Add
ModelContent
tests forfileData
parts by @andrewheard in #163 - Update doc comments by @morganchen12 in #166
- Make
text
computed property handle mixed-parts responses by @andrewheard in #165
Full Changelog: 0.5.2...0.5.3
0.5.2
What's Changed
- Make system instruction accept
String
values instead ofThrowingPartsRepresentable
by @andrewheard in #152, #155- Only text values are supported for system instructions.
- Add default
nil
value forrequiredParameters
inFunctionDeclaration
by @andrewheard in #153
Full Changelog: 0.5.1...0.5.2
0.5.1
What's Changed
- Allow for a simpler way to set system instructions by @peterfriese in #149
Full Changelog: 0.5.0...0.5.1
0.5.0
What's Changed
- Update
Citation
decoding to handle optional values by @andrewheard in #135 - Add URI-based file data support by @andrewheard in #134
- Update default API version from
v1
tov1beta
by @andrewheard in #137 - Switch to
gemini-1.5-pro-latest
in docs and tests by @andrewheard in #138 - Make
Citation.license
optional by @andrewheard in #141 - Remove public
Codable
(Decodable
and/orEncodable
) conformance by @andrewheard in #142
Breaking Changes
Citation.license
is now optional (String?
)ModelContent.Part
adds a newfileData
enum case
Full Changelog: 0.4.11...0.5.0
0.4.11
What's Changed
- Add function calling sample by @andrewheard in #127
- Add system instruction support by @andrewheard in #129
Full Changelog: 0.4.10...0.4.11
0.4.10
0.4.9
What's Changed
- Allow
PartsRepresentable
to throw errors by @morganchen12 in #88 - Update
ModelContent.Part
enum decoding strategy by @andrewheard in #115 - Capture and share the backend's message for an invalid API key by @paulb777 in #120
- Add function calling support by @andrewheard in #116
Full Changelog: 0.4.8...0.4.9