Skip to content

Conversation

phileo
Copy link
Owner

@phileo phileo commented Feb 1, 2024

google-gemini#43 from google repo

hoangchungk53qx1 and others added 30 commits January 14, 2024 13:13
…t class and builder (google-gemini#76)

# Summary

- Specify default value for `role` as a `"user"` in a public API class
Content.
- Added tests for the verification of conversion functions (_from public
class to internal class and vice versa_).

Fixes: google-gemini#75

---------

Co-authored-by: Rodrigo Lazo <[email protected]>
By default, kotlin serialization does not encode default values. In the case of content, we do want to serialize it.
Per [b/330773378](https://b.corp.google.com/issues/330773378),

This adds support for the new `FileData` part type for referencing
storage files. This also adds "support" from the genai side, as a means
of catching future api discrepancies between common and genai.
Co-authored-by: David Motsonashvili <[email protected]>
Co-authored-by: Rodrigo Lazo <[email protected]>
Mockk 1.13.* depends on kotlin 1.9
The field can be ignored in the request.

b/331762991
davidmotson and others added 30 commits May 6, 2024 19:47
Co-authored-by: David Motsonashvili <[email protected]>
Co-authored-by: Rodrigo Lazo <[email protected]>
Per [b/338414499](https://b.corp.google.com/issues/338414499),

This adds support for the `responseMimeType` property that was added to
`GenerationConfig` of gemini.

This PR also fixes the following:
- [b/338415129](https://b.corp.google.com/issues/338415129) -> Hide
leaked JSON property in common


---------

Co-authored-by: Rodrigo Lazo <[email protected]>
Also, get rid of options not available in latest versions of Java
This adds a handful of missing serialization definitions we were missing
that are not in beta and we could be using in libraries depending on
common. Tested to not cause issues with labs.
Per [b/343255536](https://b.corp.google.com/issues/343255536),

This update ktfmt to the latest version. This is needed to support a kmp
migration, and the formatting changes from `0.16.0` to `0.18.0` are
enough to pollute the kmp pr. So this change is being done separately to
help reduce the diff in kmp related changes.
Co-authored-by: David Motsonashvili <[email protected]>
Co-authored-by: David Motsonashvili <[email protected]>
google-gemini#165)

…ct it to not be null

---------

Co-authored-by: David Motsonashvili <[email protected]>
…#174)

"Warn Version Bump" will fail if a PR contains a major/minor bump
without a changelog. There most recent test commits show what this
failure looks like.
Per [b/346812151](https://b.corp.google.com/issues/346812151),

This updates the json parser in common to be lenient in its decoding.
Otherwise, it can not properly decode json literals such as:
```json
{
   "result": true
}
```

A test has been added to track this change as well.
Per [b/346829081](https://b.corp.google.com/issues/346829081),

This is a release of `Common` at `0.7.1` so that we can get the JSON
literal decoding fix out.
Per [b/344929335](https://b.corp.google.com/issues/344929335),

This simplifies our function calling to not ascertain types. As a
byproduct, we also no longer provide a means to execute functions.
Additional documentation has been provided to showcase new usage.
Per [b/350789193](https://b.corp.google.com/issues/350789193) and
[b/350789851](https://b.corp.google.com/issues/350789851),

This prepares the release for GenAI `0.9.0` and Common `0.8.0`.
Per [b/350811149](https://b.corp.google.com/issues/350811149),

This bumps the sample app version to `0.9.0` to align with the most
recent release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants