lmcli/main.go
Matt Low 0a27b9a8d3 Project refactor, add anthropic API support
- Split pkg/cli/cmd.go into new pkg/cmd package
- Split pkg/cli/functions.go into pkg/lmcli/tools package
- Refactor pkg/cli/openai.go to pkg/lmcli/provider/openai

Other changes:

- Made models configurable
- Slight config reorganization
2024-03-12 01:01:19 -06:00

19 lines
288 B
Go

package main
import (
"git.mlow.ca/mlow/lmcli/pkg/lmcli"
"git.mlow.ca/mlow/lmcli/pkg/cmd"
)
func main() {
ctx, err := lmcli.NewContext()
if err != nil {
lmcli.Fatal("%v\n", err)
}
root := cmd.RootCmd(ctx)
if err := root.Execute(); err != nil {
lmcli.Fatal("%v\n", err)
}
}