Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

draft:Update model-gallery.md with correct gallery file #2163

Merged
merged 4 commits into from
Apr 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/content/docs/features/model-gallery.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ To enable the `model-gallery` repository you need to start `local-ai` with the `
GALLERIES=[{"name":"<GALLERY_NAME>", "url":"<GALLERY_URL"}]
```

For example, to enable the `model-gallery` repository, start `local-ai` with:

For example, to enable the `local-ai` repository, start `local-ai` with:
```
GALLERIES=[{"name":"model-gallery", "url":"github:go-skynet/model-gallery/index.yaml"}]
GALLERIES=[{"name":"gallery", "url":"github:mudler/localai/gallery/index.yaml"}]
```

where `github:go-skynet/model-gallery/index.yaml` will be expanded automatically to `https://raw.githubusercontent.com/go-skynet/model-gallery/main/index.yaml`.
The string must be in this format `github:${org}/{repo}/{GALLERY_NAME}/${targetFile}`
<br />where url is `github:mudler/localai/gallery/index.yaml` and name is localai
<br />will format the values into a valid github url `https://raw.githubusercontent.com/mudler/LocalAI/master/gallery/index.yaml`

{{% alert note %}}

Expand All @@ -60,7 +60,7 @@ As this feature is experimental, you need to run `local-ai` with a list of `GALL
To enable the two repositories, start `LocalAI` with the `GALLERIES` environment variable:

```bash
GALLERIES=[{"name":"model-gallery", "url":"github:go-skynet/model-gallery/index.yaml"}, {"url": "github:go-skynet/model-gallery/huggingface.yaml","name":"huggingface"}]
GALLERIES=[{"name":"gallery", "url":"github:mudler/localai/gallery/index.yaml"}, {"url": "github:go-skynet/model-gallery/huggingface.yaml","name":"huggingface"}]
```

If running with `docker-compose`, simply edit the `.env` file and uncomment the `GALLERIES` variable, and add the one you want to use.
Expand Down