mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 02:24:59 +00:00
feat: Add '/version' endpoint and display it in the CLI (#679)
This commit is contained in:
parent
2b957df56c
commit
d3a486a4f8
4 changed files with 29 additions and 2 deletions
10
internal/version.go
Normal file
10
internal/version.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package internal
|
||||
|
||||
import "fmt"
|
||||
|
||||
var Version = ""
|
||||
var Commit = ""
|
||||
|
||||
func PrintableVersion() string {
|
||||
return fmt.Sprintf("LocalAI %s (%s)", Version, Commit)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue