Skip to content

Commit

Permalink
chore(image.go): make call function not exported
Browse files Browse the repository at this point in the history
  • Loading branch information
serhhatsari committed Sep 16, 2023
1 parent 071c648 commit aa4d3e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/askgpt/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func checkArgs(cmd *cobra.Command, args []string) error {
return nil
}

func GenerateImage(cmd *cobra.Command, args []string) {
func generateImage(cmd *cobra.Command, args []string) {
prompt := image.GetPrompt(args)
body := image.CreateBody(prompt)
jsonBody := image.ConvertBodyToJSON(body)
Expand All @@ -30,6 +30,6 @@ var cmdImage = &cobra.Command{
Use: "image",
Short: "Create an image from a prompt using the Dall-E model.",
Example: "askgpt image \"A drawing of a cat.\"",
Run: GenerateImage,
Run: generateImage,
Args: checkArgs,
}

0 comments on commit aa4d3e5

Please sign in to comment.