Skip to content

Commit

Permalink
🧱 auto env config for viper
Browse files Browse the repository at this point in the history
  • Loading branch information
warjiang committed Jun 15, 2023
1 parent 9ba3a1e commit 78b43bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"flag"
"fmt"
"github.com/spf13/viper"
"github.com/stulzq/azure-openai-proxy/azure"
"log"
"net/http"
Expand All @@ -22,6 +23,7 @@ var (
)

func main() {
viper.AutomaticEnv()
parseFlag()

azure.Init()
Expand Down

0 comments on commit 78b43bd

Please sign in to comment.