Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync with google/generative-ai-android v0.9.0 #11

Merged
merged 49 commits into from
Sep 21, 2024
Merged

Sync with google/generative-ai-android v0.9.0 #11

merged 49 commits into from
Sep 21, 2024

Conversation

PatilShreyas
Copy link
Owner

No description provided.

emilypgoogle and others added 30 commits September 21, 2024 10:34
When we migrated to common, our types got moved and the proguard rule no
longer applied. I think this should be adequate to handle all of our
serialized types, but if there are more outside of common that'll also
need to be kept.
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]>
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`.
Internal b/346393026

---------

Co-authored-by: rachelsaunders <[email protected]>
Co-authored-by: David Motsonashvili <[email protected]>
Co-authored-by: David Motsonashvili <[email protected]>
tanzimfh and others added 18 commits September 21, 2024 10:52
Per [b/348216210](https://b.corp.google.com/issues/348216210),

This addresses some comments left in a previous PR. More specifically,
it updates our tests to use `1.5` instead of `1.0` so that we better
align with expected usage.
Show that content parts contain the executableCode and executableResult
as separate parts

---------

Co-authored-by: Daymon <[email protected]>
I'm making sure all samples in our various repos have a ToC. This
matches the Python & REST READMEs, and I can add a GitHub action if you
like - just LMK.

* [Python and
REST](google-gemini/generative-ai-python@db311dd)
* [GitHub
action](https://github.com/google-gemini/generative-ai-python/blob/main/.github/workflows/samples.yaml)
@PatilShreyas PatilShreyas merged commit c1fe685 into main Sep 21, 2024
1 check passed
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.

8 participants