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

Explicit Caching #355

Merged
merged 23 commits into from
Jun 5, 2024
Merged

Explicit Caching #355

merged 23 commits into from
Jun 5, 2024

Commits on May 18, 2024

  1. *Inital prototype for explicit caching

    *Add basic CURD support for caching
    
    *Remove INPUT_ONLY marked fields from CachedContent dataclass
    
    *Rename files 'cached_content*' -> 'caching*'
    
    *Update 'Create' method for explicit instantination of 'CachedContent'
    
    *Add a factory method to instatinate model with `CachedContent` as
    its context
    
    *blacken
    
    *Add tests
    
    Change-Id: I694545243efda467d6fd599beded0dc6679b727d
    mayureshagashe2105 committed May 18, 2024
    Configuration menu
    Copy the full SHA
    f13228d View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

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

Commits on May 22, 2024

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

Commits on May 23, 2024

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

    mayureshagashe2105 committed May 23, 2024
    Configuration menu
    Copy the full SHA
    e65d16e View commit details
    Browse the repository at this point in the history
  3. Improve tests

    mayureshagashe2105 committed May 23, 2024
    Configuration menu
    Copy the full SHA
    d35cc71 View commit details
    Browse the repository at this point in the history
  4. fix tests

    Change-Id: I39f61012f850a82e09a7afb80b527a0f99ad0ec7
    mayureshagashe2105 committed May 23, 2024
    Configuration menu
    Copy the full SHA
    d862dae View commit details
    Browse the repository at this point in the history
  5. fix tests

    Change-Id: I39f61012f850a82e09a7afb80b527a0f99ad0ec7
    mayureshagashe2105 committed May 23, 2024
    Configuration menu
    Copy the full SHA
    2cde1a2 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2024

  1. Validate name checks for CachedContent creation

    Change-Id: Ie41602621d99ddff6404c6708c7278e0da790652
    mayureshagashe2105 committed May 24, 2024
    Configuration menu
    Copy the full SHA
    e1d8c7a View commit details
    Browse the repository at this point in the history
  2. Add tests

    Change-Id: I249188fa585bd9b7193efa48b1cfca20b8a79821
    mayureshagashe2105 committed May 24, 2024
    Configuration menu
    Copy the full SHA
    59663c8 View commit details
    Browse the repository at this point in the history

Commits on May 26, 2024

  1. mark name as OPTIONAL for CachedContent creation

    If not provided, the name will be randomly generated
    
    Change-Id: Ib95fbafd3dfe098b43164d7ee4d6c2a84b0aae2e
    mayureshagashe2105 committed May 26, 2024
    Configuration menu
    Copy the full SHA
    f37df8c View commit details
    Browse the repository at this point in the history

Commits on May 27, 2024

  1. Add type-annotations to __new__ to fix pytype checks

    Change-Id: I6c69c036e54d56d18ea60368fa0a1dcda2d315fd
    mayureshagashe2105 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    d1fd749 View commit details
    Browse the repository at this point in the history
  2. Add 'cached_content' to GenerativeModel's repr

    Change-Id: I06676fad23895e3e1a6393baa938fc1f2df57d80
    mayureshagashe2105 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    17372e3 View commit details
    Browse the repository at this point in the history
  3. blacken

    Change-Id: I4e073d821d29eea30801bdb7e2a8dc01bb7d6b9a
    mayureshagashe2105 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    645ceab View commit details
    Browse the repository at this point in the history
  4. Fix types

    Change-Id: Ia4bf6b936fab4c1992798c65cff91c15e51a92c0
    mayureshagashe2105 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    f48cedc View commit details
    Browse the repository at this point in the history
  5. Fix docstrings

    Change-Id: I6020df4e862a4f1d58462a4cd70876a8448293cf
    mayureshagashe2105 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    a1c8c72 View commit details
    Browse the repository at this point in the history
  6. Fix types

    Change-Id: Id3e7316562f4029e5b7409ae725bb66e2207f075
    mayureshagashe2105 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    67472d3 View commit details
    Browse the repository at this point in the history
  7. Fix types

    Change-Id: Id3e7316562f4029e5b7409ae725bb66e2207f075
    mayureshagashe2105 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    bf6551a View commit details
    Browse the repository at this point in the history

Commits on May 30, 2024

  1. Merge branch 'main' of https://github.com/mayureshagashe2105/generati…

    …ve-ai-python into caching
    
    Change-Id: Id2b259fe4b2c91653bf5e4d5e883f556366d8676
    mayureshagashe2105 committed May 30, 2024
    Configuration menu
    Copy the full SHA
    82d3c5a View commit details
    Browse the repository at this point in the history
  2. Refactor for genai.protos module

    Change-Id: I2f02d2421d7303f0309ec86f05d33c07332c03c1
    mayureshagashe2105 committed May 30, 2024
    Configuration menu
    Copy the full SHA
    8e86ef1 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2024

  1. use preview build

    Change-Id: Ic1cd4fc28f591794dc5fbff0647a00a77ea7f601
    MarkDaoust committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    4627fe1 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into caching

    Change-Id: I2bade6b0099f12dd37a24fe26cfda1981c58fbc0
    MarkDaoust committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    fb9995c View commit details
    Browse the repository at this point in the history