pull-pal/cmd/debug-llm.go

33 lines
551 B
Go
Raw Normal View History

2023-05-03 00:07:48 +00:00
package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
var debugLLMCmd = &cobra.Command{
Use: "debug-llm",
Short: "debug llm functionality",
2023-05-03 00:07:48 +00:00
Run: func(cmd *cobra.Command, args []string) {
cfg := getConfig()
p, err := getPullPal(cmd.Context(), cfg)
if err != nil {
fmt.Println("error creating new pull pal", err)
return
}
fmt.Println("Successfully initialized pull pal")
err = p.DebugLLM()
2023-05-03 00:07:48 +00:00
if err != nil {
fmt.Println("err debugging prompts", err)
2023-05-03 00:07:48 +00:00
return
}
},
}
func init() {
rootCmd.AddCommand(debugLLMCmd)
2023-05-03 00:07:48 +00:00
}