mirror of
https://github.com/stulzq/azure-openai-proxy.git
synced 2025-12-19 07:14:21 +01:00
🧱 auto env config for viper
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"flag"
|
||||
"fmt"
|
||||
"github.com/spf13/viper"
|
||||
"github.com/stulzq/azure-openai-proxy/azure"
|
||||
"log"
|
||||
"net/http"
|
||||
@@ -22,6 +23,7 @@ var (
|
||||
)
|
||||
|
||||
func main() {
|
||||
viper.AutomaticEnv()
|
||||
parseFlag()
|
||||
|
||||
azure.Init()
|
||||
|
||||
Reference in New Issue
Block a user