Commit Graph

3 Commits

Author SHA1 Message Date
Sebastian Benz
69f946b35e Improve prompt API sample (#1344)
* Improve prompt API sample

* Render response as markdown
* Fix initial maxK and temperature values
* Add privacy statement (for webstore submission)
* Regenerate key and trial token

* fix formatting errors

* Update functional-samples/ai.gemini-on-device/sidepanel/index.js

Update maxTemperature

Co-authored-by: Thomas Steiner <tomac@google.com>

* Update functional-samples/ai.gemini-on-device/sidepanel/index.js

Better string comparison

Co-authored-by: Thomas Steiner <tomac@google.com>

---------

Co-authored-by: Thomas Steiner <tomac@google.com>
2024-11-08 15:35:27 +01:00
Thomas Steiner
b939ca2db9 Change on-device example to use the origin trial API (#1337)
* Add scaffolding for Prompt API OT example

* Rewrite existing example to use the OT

* Add trial token and key

* Update error message, add `minimum_chrome_version`

* Fix feature detection

* Some README refinements

* Correct instructions

* OT refinement
2024-10-31 15:46:16 +01:00
Sebastian Benz
e1ad9ce8f0 Add gemini nano sample (#1234)
Add gemini nano sample

---------

Co-authored-by: Oliver Dunk <oliverdunk@google.com>
2024-07-22 17:44:44 +00:00