feat: Add '/version' endpoint and display it in the CLI (#679)
parent
2b957df56c
commit
d3a486a4f8
@ -0,0 +1,10 @@ |
|||||||
|
package internal |
||||||
|
|
||||||
|
import "fmt" |
||||||
|
|
||||||
|
var Version = "" |
||||||
|
var Commit = "" |
||||||
|
|
||||||
|
func PrintableVersion() string { |
||||||
|
return fmt.Sprintf("LocalAI %s (%s)", Version, Commit) |
||||||
|
} |
Loading…
Reference in new issue