Skip to content

Commit

Permalink
fix: segmentation violation during serve (#1215)
Browse files Browse the repository at this point in the history
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
  • Loading branch information
yankay committed Aug 7, 2024
1 parent ad117a5 commit b7e5394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/serve/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ var ServeCmd = &cobra.Command{
}
}

if aiProvider.Name == "" {
if aiProvider == nil || aiProvider.Name == "" {
color.Red("Error: AI provider %s not specified in configuration. Please run k8sgpt auth", backend)
os.Exit(1)
}
Expand Down

0 comments on commit b7e5394

Please sign in to comment.