package main
import (
"fmt"
"html/template"
"io/ioutil"
"os"
"gopkg.in/yaml.v3"
)
var modelPageTemplate string = `
LocalAI models
LocalAI model gallery list
🖼️ Available {{.AvailableModels}} models
Refer to the Model gallery for more information on how to use the models with LocalAI.
You can install models with the CLI command local-ai models install . or by using the WebUI.
{{ range $_, $model := .Models }}
{{ $icon := "https://upload.wikimedia.org/wikipedia/commons/6/65/No-Image-Placeholder.svg" }}
{{ if $model.Icon }}
{{ $icon = $model.Icon }}
{{ end }}
{{$model.Name}}
{{ $model.Description }}
{{ $model.Name}}
{{ $model.Description }}
To install the model with the CLI, run: local-ai models install {{$model.Name}}
See also
Installation
to see how to install models with the REST API.