Skip to content

Commit

Permalink
fix: auth update throw out exception (#1193)
Browse files Browse the repository at this point in the history
Signed-off-by: Guangya Liu <[email protected]>
Co-authored-by: Matthis <[email protected]>
  • Loading branch information
gyliu513 and matthisholleville authored Jul 18, 2024
1 parent 3c08118 commit 391a3cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/auth/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var updateCmd = &cobra.Command{
Long: "The command to update an AI backend provider",
// Args: cobra.ExactArgs(1),
PreRun: func(cmd *cobra.Command, args []string) {
_ = cmd.MarkFlagRequired("backend")
backend, _ := cmd.Flags().GetString("backend")
if strings.ToLower(backend) == "azureopenai" {
_ = cmd.MarkFlagRequired("engine")
Expand Down

0 comments on commit 391a3cd

Please sign in to comment.