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"
|
"context"
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"github.com/spf13/viper"
|
||||||
"github.com/stulzq/azure-openai-proxy/azure"
|
"github.com/stulzq/azure-openai-proxy/azure"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
@@ -22,6 +23,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
viper.AutomaticEnv()
|
||||||
parseFlag()
|
parseFlag()
|
||||||
|
|
||||||
azure.Init()
|
azure.Init()
|
||||||
|
|||||||
Reference in New Issue
Block a user