Problem/Motivation

It would be useful to have a setup guide on how to configure both the Huggingface account and how to configure the AI module to work with it.

Proposed resolution

Document the basic setup steps.

Remaining tasks

Document the basic setup steps.

User interface changes

n/a

API changes

n/a

Data model changes

n/a

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

damienmckenna created an issue. See original summary.

damienmckenna’s picture

wrong service

damienmckenna’s picture

Problem: When setting up an initial environment for testing it's not clear what the "endpoint" value should be?

damienmckenna’s picture

damienmckenna’s picture

Steps so far:
* Sign up at https://huggingface.co and go through the steps to confirm the account.
* Open the profile page.
* In the sidebar open the "Access tokens" page: https://huggingface.co/settings/tokens
* Click on "Create new token".
* Provide a name for the token and select the appropriate permissions and click "Create token".
* Once the token is generated, copy the string.
* On the Keys admin page (admin/config/system/keys) click "Add key".
* Fill in a key name and description as appropriate.
* Set the "Key type" to "Authentication".
* Set the "Key provider" as appropriate for the individual scenario; a simple option is to set it to "Configuration".
* Set the "Value" as appropriate for the individual scenario; a simple option is to paste in the API key generated earlier.
* Click "Save" to save the API key.
* Open the Huggingface admin page (admin/config/ai/providers/huggingface).
* On the "Huggingface Access Token" field select the API key / token item that was created above.
* Complete the reset of the setup as necessary.

Note, it's not clear what permissions are necessary.

marcus_johansson made their first commit to this issue’s fork.

marcus_johansson’s picture

Status: Active » Fixed

Thank you, adding a readme before the rc release.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.