Skip to content

AI generated palette#68

Draft
pawcoding wants to merge 2 commits into
stagingfrom
feat/local-ai
Draft

AI generated palette#68
pawcoding wants to merge 2 commits into
stagingfrom
feat/local-ai

Conversation

@pawcoding
Copy link
Copy Markdown
Owner

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

  • 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

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.
@pawcoding pawcoding self-assigned this Jul 7, 2024
I couldn't test it on any of my devices, because no model is available.
@pawcoding pawcoding force-pushed the staging branch 2 times, most recently from 0604471 to fa2b5a6 Compare August 25, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant