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 wasm variant with v0.5.0 #9

Merged
merged 49 commits into from
May 4, 2024
Merged

Sync wasm variant with v0.5.0 #9

merged 49 commits into from
May 4, 2024

Commits on Mar 14, 2024

  1. Configuration menu
    Copy the full SHA
    bd5f554 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2024

  1. Merge pull request #6 from PatilShreyas/v0.2.2-kmp

    Sync with google/generative-ai-android v0.2.2
    PatilShreyas authored Mar 16, 2024
    Configuration menu
    Copy the full SHA
    c53879d View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2024

  1. Configuration menu
    Copy the full SHA
    39396f0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4638406 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2024

  1. Configuration menu
    Copy the full SHA
    b2afc55 View commit details
    Browse the repository at this point in the history
  2. Add support for FileData (google-gemini#92)

    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.
    daymxn authored Mar 22, 2024
    Configuration menu
    Copy the full SHA
    672f0a4 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2024

  1. added quota exceeded exception (google-gemini#93)

    Co-authored-by: David Motsonashvili <[email protected]>
    Co-authored-by: Rodrigo Lazo <[email protected]>
    3 people authored Mar 25, 2024
    Configuration menu
    Copy the full SHA
    47135cf View commit details
    Browse the repository at this point in the history
  2. Depend on right mockk version (google-gemini#94)

    Mockk 1.13.* depends on kotlin 1.9
    rlazo authored Mar 25, 2024
    Configuration menu
    Copy the full SHA
    849f432 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2024

  1. Function calling (common only) (google-gemini#97)

    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]>
    3 people authored Mar 26, 2024
    Configuration menu
    Copy the full SHA
    a2b71df View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2024

  1. Bump futures dependency (google-gemini#98)

    Should address issue google-gemini#69
    rlazo authored Mar 27, 2024
    Configuration menu
    Copy the full SHA
    ab722b6 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2024

  1. Don't encode the model name in the outgoing request (google-gemini#101)

    The field can be ignored in the request.
    
    b/331762991
    rlazo authored Mar 28, 2024
    Configuration menu
    Copy the full SHA
    40f496e View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2024

  1. split the auto function calling changes between common and generative…

    …ai (google-gemini#90)
    
    Co-authored-by: David Motsonashvili <[email protected]>
    davidmotson and David Motsonashvili authored Apr 2, 2024
    Configuration menu
    Copy the full SHA
    f22a52f View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2024

  1. Configuration menu
    Copy the full SHA
    f14808f View commit details
    Browse the repository at this point in the history
  2. Make candidateTokenCount optional for cases with no candidate (google…

    …-gemini#104)
    
    Co-authored-by: David Motsonashvili <[email protected]>
    davidmotson and David Motsonashvili authored Apr 3, 2024
    Configuration menu
    Copy the full SHA
    91d69a9 View commit details
    Browse the repository at this point in the history
  3. Add clientId parameter in common (google-gemini#107)

    This parameter is used to fill the `x-goog-api-client` header
    rlazo authored Apr 3, 2024
    Configuration menu
    Copy the full SHA
    6bc885f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    77483c3 View commit details
    Browse the repository at this point in the history
  5. Add totalBillableCharacters to CountTokensResponse (google-gemini…

    …#106)
    
    Also, make the fields optional.
    rlazo authored Apr 3, 2024
    Configuration menu
    Copy the full SHA
    30050e4 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2024

  1. Support releasing multiple SDKs (google-gemini#109)

    Per [b/330880975](https://b.corp.google.com/issues/330880975),
    
    This updates our release infrastructure to support our new multi project
    repo (with `common` and `generativeai` living next to one another). Now,
    we can release either in separation of the other.
    
    This PR also includes the necessary changes to various tasks, plugins,
    workflows, tools, and even documentation.
    
    More specifically, this PR fixes the following:
    
    - [b/332890790](https://b.corp.google.com/issues/332890790) -> Implement
    a task to generate collective release notes
    - [b/332891281](https://b.corp.google.com/issues/332891281) -> Implement
    a task to generative collective api changes
    - [b/332891563](https://b.corp.google.com/issues/332891563) -> Provide a
    means for SDKs to generate their release artifacts in isolation of one
    another
    - [b/332892199](https://b.corp.google.com/issues/332892199) -> Separate
    api changes according to sdk
    - [b/332892499](https://b.corp.google.com/issues/332892499) -> Implement
    a task to release all sdks with changes
    - [b/332893058](https://b.corp.google.com/issues/332893058) -> Update
    the api changes workflow to work for multiple sdks
    - [b/332894984](https://b.corp.google.com/issues/332894984) -> Update
    the build release workflow to work for multiple sdks
    - [b/332897987](https://b.corp.google.com/issues/332897987) -> Update
    DEVELOPING to reflect the multiple sdk structure
    - [b/332898189](https://b.corp.google.com/issues/332898189) -> Update
    change to allow specifying projects
    daymxn authored Apr 4, 2024
    Configuration menu
    Copy the full SHA
    4179344 View commit details
    Browse the repository at this point in the history
  2. Add support for header provider (google-gemini#110)

    Co-authored-by: Daymon <[email protected]>
    rlazo and daymxn authored Apr 4, 2024
    Configuration menu
    Copy the full SHA
    b65c155 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. Fix API job for new locations of api (google-gemini#113)

    Co-authored-by: David Motsonashvili <[email protected]>
    davidmotson and David Motsonashvili authored Apr 5, 2024
    Configuration menu
    Copy the full SHA
    1fddbab View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2024

  1. add SystemInstruction as a param to GenerativeModel and wire it throu… (

    google-gemini#112)
    
    …gh common
    
    Co-authored-by: David Motsonashvili <[email protected]>
    Co-authored-by: Rodrigo Lazo <[email protected]>
    3 people authored Apr 9, 2024
    Configuration menu
    Copy the full SHA
    69b5610 View commit details
    Browse the repository at this point in the history
  2. keep GenerativeModel's original parameter positions (google-gemini#115)

    It seems like the `tools` and `toolConfig` parameters were added before
    `requestOptions`, which could cause a breaking change because in the
    current version of the SDK the `RequestOptions` is in a different order
    (right after `safetySettings`).
    
    ---------
    
    Co-authored-by: Rodrigo Lazo <[email protected]>
    thatfiredev and rlazo authored Apr 9, 2024
    Configuration menu
    Copy the full SHA
    753cb33 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2024

  1. Bump release versions (google-gemini#117)

    Common and GenerativeAI SDKs are both getting a version bump
    rlazo authored Apr 10, 2024
    Configuration menu
    Copy the full SHA
    56cf778 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2024

  1. Configuration menu
    Copy the full SHA
    287e9bb View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2024

  1. Configuration menu
    Copy the full SHA
    2d9f5db View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2024

  1. Make v1beta the default api version (google-gemini#123)

    Also, update the README to use gemini-1.5-pro-latest
    rlazo authored Apr 19, 2024
    Configuration menu
    Copy the full SHA
    9476b4f View commit details
    Browse the repository at this point in the history
  2. Add support for FileDataPart in the request (google-gemini#121)

    We are enabling devs to reference a file in the request, but not ot
    upload from the Android SDK
    
    ---------
    
    Co-authored-by: Daymon <[email protected]>
    rlazo and daymxn authored Apr 19, 2024
    Configuration menu
    Copy the full SHA
    c8a0a37 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    910252b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3f253ab View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2024

  1. Update README.md (google-gemini#125)

    Add caution section on top
    
    ---------
    
    Co-authored-by: rachelsaunders <[email protected]>
    rlazo and rachelsaunders authored Apr 24, 2024
    Configuration menu
    Copy the full SHA
    28877bc View commit details
    Browse the repository at this point in the history
  2. Fix release plugin (google-gemini#126)

    Per [b/333743859](https://b.corp.google.com/issues/333743859),
    
    This fixes the issues with the `updateVersion` task properly pulling a
    dependency on the release notes task, and adds the api files we were
    previously missing
    
    This PR also fixes the following:
    - [b/336808217](https://b.corp.google.com/issues/336808217) -> Migrate
    away from file properties
    daymxn authored Apr 24, 2024
    Configuration menu
    Copy the full SHA
    dd2bcaf View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2024

  1. Remove usages of Beta flag (google-gemini#127)

    Per [b/337045627](https://b.corp.google.com/issues/337045627),
    
    Since `v1beta` is now the default, we no longer have any need to require
    optin for certain features. The annotation itself has been left for
    future usage, but its actual usages have been removed.
    daymxn authored Apr 25, 2024
    Configuration menu
    Copy the full SHA
    a081fb3 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2024

  1. Correctly handle UsageMetadata (google-gemini#135)

    Also, exposes the data when available.
    
    Addresses issue google-gemini#134
    rlazo authored May 3, 2024
    Configuration menu
    Copy the full SHA
    146c4d6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1d12b81 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2024

  1. Sync with v0.5.0

    PatilShreyas committed May 4, 2024
    Configuration menu
    Copy the full SHA
    d9531c4 View commit details
    Browse the repository at this point in the history
  2. Sync with v0.5.0

    PatilShreyas committed May 4, 2024
    Configuration menu
    Copy the full SHA
    7a929cf View commit details
    Browse the repository at this point in the history
  3. Enable release signing

    PatilShreyas committed May 4, 2024
    Configuration menu
    Copy the full SHA
    f2253d1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a501df9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a37282e View commit details
    Browse the repository at this point in the history
  6. Update release workflow

    PatilShreyas committed May 4, 2024
    Configuration menu
    Copy the full SHA
    36d3403 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a7a0e85 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8d5aaaa View commit details
    Browse the repository at this point in the history
  9. Reformat with spotless

    PatilShreyas committed May 4, 2024
    Configuration menu
    Copy the full SHA
    bf83e6e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1e0d35d View commit details
    Browse the repository at this point in the history
  11. Merge branch 'wasm' of github.com:PatilShreyas/generative-ai-kmp into…

    … v0.5.0-wasm
    
    # Conflicts:
    #	generativeai/gradle.properties
    #	generativeai/src/commonMain/kotlin/dev/shreyaspatil/ai/client/generativeai/type/RequestOptions.kt
    PatilShreyas committed May 4, 2024
    Configuration menu
    Copy the full SHA
    b1c3a86 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    43c364e View commit details
    Browse the repository at this point in the history
  13. Update version

    PatilShreyas committed May 4, 2024
    Configuration menu
    Copy the full SHA
    d51c899 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    d6964a9 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    c197baf View commit details
    Browse the repository at this point in the history