forked from google-gemini/deprecated-generative-ai-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Multi-turn conversations #1
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
Open
phileo
wants to merge
84
commits into
phileo:main
Choose a base branch
from
hoangchungk53qx1:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…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
Based on work from https://github.com/google/generative-ai-android/tree/davidmotson.auto_function_split --------- Co-authored-by: David Motsonashvili <[email protected]> Co-authored-by: David Motsonashvili <[email protected]>
Should address issue google-gemini#69
The field can be ignored in the request. b/331762991
…ai (google-gemini#90) Co-authored-by: David Motsonashvili <[email protected]>
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]>
google-gemini#144) …all text parts --------- Co-authored-by: David Motsonashvili <[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.
Co-authored-by: David Motsonashvili <[email protected]>
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]>
…-gemini#159) Co-authored-by: David Motsonashvili <[email protected]>
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.
Co-authored-by: David Motsonashvili <[email protected]>
Co-authored-by: David Motsonashvili <[email protected]>
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`.
The test had no assertion
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
google-gemini#43 from google repo