Skip to content

Commit

Permalink
cosmetic change
Browse files Browse the repository at this point in the history
  • Loading branch information
ks6088ts committed Sep 15, 2024
1 parent aa7b6c5 commit 07eb72d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions cmd/aoai/chatCompletion.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ import (
"github.com/spf13/cobra"
)

// chatCompletionCmd represents the chatCompletion command
var chatCompletionCmd = &cobra.Command{
Use: "chatCompletion",
// chatcompletionCmd represents the chatcompletion command
var chatcompletionCmd = &cobra.Command{
Use: "chatcompletion",
Short: "A command for Azure OpenAI Service Chat Completion",
Long: `ref. https://learn.microsoft.com/azure/ai-services/openai/chatgpt-quickstart?tabs=command-line%2Cpython-new&pivots=programming-language-go`,
Run: func(cmd *cobra.Command, args []string) {
Expand Down Expand Up @@ -120,10 +120,10 @@ var chatCompletionCmd = &cobra.Command{
}

func init() {
aoaiCmd.AddCommand(chatCompletionCmd)
aoaiCmd.AddCommand(chatcompletionCmd)

chatCompletionCmd.Flags().StringP("modelDeploymentID", "d", "gpt-4o", "Model Deployment ID")
chatCompletionCmd.Flags().StringP("azureOpenAIEndpoint", "e", "", "Azure OpenAI Endpoint")
chatCompletionCmd.Flags().StringP("azureOpenAIKey", "k", "", "Azure OpenAI Key")
chatCompletionCmd.Flags().StringP("message", "m", "Hello, how are you?", "Message")
chatcompletionCmd.Flags().StringP("modelDeploymentID", "d", "gpt-4o", "Model Deployment ID")
chatcompletionCmd.Flags().StringP("azureOpenAIEndpoint", "e", "", "Azure OpenAI Endpoint")
chatcompletionCmd.Flags().StringP("azureOpenAIKey", "k", "", "Azure OpenAI Key")
chatcompletionCmd.Flags().StringP("message", "m", "Hello, how are you?", "Message")
}
2 changes: 1 addition & 1 deletion cmd/azurefunctions/httpexample.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ to quickly create a Cobra application.`,
listenAddr = ":" + val
}
http.HandleFunc("/api/HttpExample", helloHandler)
log.Printf("About to listen on %s. Go to https://127.0.0.1%s/", listenAddr, listenAddr)
log.Printf("About to listen on %s. Go to http://127.0.0.1%s/api/HttpExample?name=world", listenAddr, listenAddr)
log.Fatal(http.ListenAndServe(listenAddr, nil))
},
}
Expand Down

0 comments on commit 07eb72d

Please sign in to comment.