update docs

This commit is contained in:
2023-11-28 10:22:12 +08:00
parent 0785d43ff1
commit 11bf18391e
2 changed files with 5 additions and 1 deletions

View File

@@ -72,8 +72,12 @@ Usage of ./openai-api-route:
监听地址(默认为 ":8888"
-upstreams string
上游配置文件(默认为 "./upstreams.yaml"
-dbtype
数据库类型 (sqlite 或 postgres默认为 sqlite)
-database string
数据库地址(默认为 "./db.sqlite"
如果数据库为 postgres ,则此值应 PostgreSQL DSN 格式
例如 "host=127.0.0.1 port=5432 user=postgres dbname=openai_api_route sslmode=disable password=woshimima"
-list
列出所有上游
-noauth

View File

@@ -19,7 +19,7 @@ var config Config
func main() {
dbType := flag.String("dbtype", "sqlite", "Database type (sqlite or postgres)")
dbAddr := flag.String("database", "./db.sqlite", "Database address")
dbAddr := flag.String("database", "./db.sqlite", "Database address, if dbType is postgres, this is the DSN connection string")
configFile := flag.String("config", "./config.yaml", "Config file")
listenAddr := flag.String("addr", ":8888", "Listening address")
listMode := flag.Bool("list", false, "List all upstream")