This uses the experimental local Gemini Nano model embedded into Google Chrome to generate a palette. The proof of concept was already done in ab76818.
When the local AI is not enabled or not available this feature will not be visible to the user.
Changes
Add "AI generated" palette scheme
Add AiService to interact with the model and generate a palette
Add basic tests for AiService
If the model is not available the tests are expecting errors to be thrown
If the model is available the tests are expecting timeout errors since the timeout is set so low the model has no chance to answer. These tests are mainly so that the API still works, not complete feature tests
General information
This uses the experimental local Gemini Nano model embedded into Google Chrome to generate a palette. The proof of concept was already done in ab76818.
When the local AI is not enabled or not available this feature will not be visible to the user.
Changes
AiService
to interact with the model and generate a paletteAiService