0
Files
src/components/optimization_guide
Clark DuVall c0cb3ef57e Gracefully handle large token limits from feature configs
This makes sure we never expose a token limit that is greater than the
max tokens for the model.

Bug: 406501193
Change-Id: Ifd50040c4f1b980c00910603ce6b1b73d20877f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6396828
Commit-Queue: Clark DuVall <cduvall@chromium.org>
Reviewed-by: Steven Holte <holte@chromium.org>
Auto-Submit: Clark DuVall <cduvall@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1438419}
2025-03-26 14:49:14 -07:00
..
2025-03-26 14:17:45 -07:00

The optimization guide component contains code for processing hints and machine learning models received from the remote Chrome Optimization Guide Service.

Optimization Guide is a layered component (https://sites.google.com/a/chromium.org/dev/developers/design-documents/layered-components-design) to enable it to be easily used on all platforms.

Directory structure:

core/: Shared code that does not depend on src/content/

  • Contains the core functionalities to fetch and persist data received from the remote Chrome Optimization Guide Service, including but not limited to page load metadata and machine learning models.

content/: Driver for the shared code based on the content layer

  • Contains the functionality for interpreting the data received from the remote Chrome Optimization Guide Service.