Documentation
¶
Index ¶
- func CompletionIndicationFilePath(modelDir, modelID string) string
- func ModelFilePath(modelDir, modelID string, format mv1.ModelFormat) (string, error)
- type D
- func (d *D) CompletionIndicationFilePath(modelID string) string
- func (d *D) Download(ctx context.Context, modelID string, srcPath string, format mv1.ModelFormat, ...) error
- func (d *D) ModelFilePath(modelID string, format mv1.ModelFormat) (string, error)
- func (d *D) OllamaModelfilePath(modelID string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompletionIndicationFilePath ¶ added in v1.22.0
CompletionIndicationFilePath returns the file path of the completion indication file.
func ModelFilePath ¶
func ModelFilePath(modelDir, modelID string, format mv1.ModelFormat) (string, error)
ModelFilePath returns the file path of the model.
Types ¶
type D ¶
type D struct {
// contains filtered or unexported fields
}
D is a downloader.
func (*D) CompletionIndicationFilePath ¶ added in v1.22.0
CompletionIndicationFilePath returns the completion indication file path.
func (*D) Download ¶
func (d *D) Download( ctx context.Context, modelID string, srcPath string, format mv1.ModelFormat, adapterType mv1.AdapterType, ) error
Download downloads the model.
func (*D) ModelFilePath ¶ added in v1.22.0
ModelFilePath returns the model file path.
func (*D) OllamaModelfilePath ¶ added in v1.22.0
OllamaModelfilePath returns the Ollama model file path.
Click to show internal directories.
Click to hide internal directories.