Skip to content

Releases: google-gemini/generative-ai-swift

0.5.4

29 May 16:16
5478400
Compare
Choose a tag to compare

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 to GenerationConfig by @andrewheard in #176
  • Send GenerateContentRequest in CountTokensRequest 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

13 May 14:30
5d750b8
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.5.2...0.5.3

0.5.2

02 May 18:45
16e68be
Compare
Choose a tag to compare

What's Changed

  • Make system instruction accept String values instead of ThrowingPartsRepresentable by @andrewheard in #152, #155
    • Only text values are supported for system instructions.
  • Add default nil value for requiredParameters in FunctionDeclaration by @andrewheard in #153

Full Changelog: 0.5.1...0.5.2

0.5.1

29 Apr 19:08
e195730
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.5.0...0.5.1

0.5.0

22 Apr 13:22
584b1e9
Compare
Choose a tag to compare

What's Changed

Breaking Changes

  • Citation.license is now optional (String?)
  • ModelContent.Part adds a new fileData enum case

Full Changelog: 0.4.11...0.5.0

0.4.11

10 Apr 22:31
9156ed7
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.4.10...0.4.11

0.4.10

09 Apr 18:18
0976d0f
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.4.9...0.4.10

0.4.9

28 Mar 18:55
f4a8808
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.4.8...0.4.9

0.4.8

15 Feb 16:41
e2cebcd
Compare
Choose a tag to compare

What's Changed

  • Add RequestOptions to the GenerativeModel constructor, which allows developers to specify configuration options for requests sent to the backend (#100)
    • apiVersion: Optionally target a specific version of the API (for example, "v1beta"); defaults to "v1" if not specified (#101)
    • timeout: Optionally set a request’s timeout interval in seconds; if not specified, uses the default value for a URLRequest (#99)
  • The PaLM API is deprecated for use with Google AI services and tools (but not for Vertex AI). Learn more about this deprecation, its timeline, and how to migrate to use Gemini in the PaLM API deprecation guide (#110)
  • Update model name strings in README, docs and samples; see Gemini models for a list of supported model names (#109)
  • Add support for any model name prefix, in addition to models/ (#98)
  • Decrease minimum required Swift toolchain version to 5.7.1 (#102, #103)

Full Changelog: 0.4.7...0.4.8

0.4.7

26 Jan 18:36
dcbdb5e
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.4.6...0.4.7