lmstudio

package
v1.30.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ModelfileTemplate = `` /* 749-byte string literal not displayed */

ModelfileTemplate contains the default template for creating Modelfiles TODO: Make the default Modelfile template configurable

Variables

This section is empty.

Functions

func LinkModelToOllama

func LinkModelToOllama(model Model, dryRun bool, ollamaHost string, ollamaDir string) error

LinkModelToOllama links an LM Studio model to Ollama If dryRun is true, it will only print what would happen without making any changes

Types

type Model

type Model struct {
	Name     string
	Path     string
	FileType string // e.g., "gguf", "bin", etc.
}

func ScanModels

func ScanModels(dirPath string) ([]Model, error)

ScanModels scans the given directory for LM Studio model files

type ModelfileData

type ModelfileData struct {
	ModelPath string
	Prompt    string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳