()
| 22 | ) |
| 23 | |
| 24 | func printHelp() { |
| 25 | fmt.Println("NewAPI(Based OneAPI) " + Version + " - The next-generation LLM gateway and AI asset management system supports multiple languages.") |
| 26 | fmt.Println("Original Project: OneAPI by JustSong - https://github.com/songquanpeng/one-api") |
| 27 | fmt.Println("Maintainer: QuantumNous - https://github.com/QuantumNous/new-api") |
| 28 | fmt.Println("Usage: newapi [--port <port>] [--log-dir <log directory>] [--version] [--help]") |
| 29 | } |
| 30 | |
| 31 | func InitEnv() { |
| 32 | flag.Parse() |