Logo
Explore Help
Register Sign In
oadmin/new-api
1
0
Fork 0
You've already forked new-api
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
3d4bd760839f012e408784839da7fc6bb2fc95d7
new-api/setting/system_setting.go

11 lines
205 B
Go
Raw Normal View History

feat: Introduce settings package and refactor constants - Added a new `setting` package to replace the `constant` package for configuration management, improving code organization and clarity. - Moved various configuration variables such as `ServerAddress`, `PayAddress`, and `SensitiveWords` to the new `setting` package. - Updated references throughout the codebase to use the new `setting` package, ensuring consistent access to configuration values. - Introduced new files for managing chat settings and midjourney settings, enhancing modularity and maintainability of the code.
2024-12-22 17:24:29 +08:00
package setting
feat: 支持设置worker访问请求中的图片地址
2024-05-28 17:59:53 +08:00
var ServerAddress = "http://localhost:3000"
var WorkerUrl = ""
var WorkerValidKey = ""
feat: add option to allow worker HTTP image requests
2025-05-09 02:00:42 +08:00
var WorkerAllowHttpImageRequestEnabled = false
feat: 支持设置worker访问请求中的图片地址
2024-05-28 17:59:53 +08:00
func EnableWorker() bool {
return WorkerUrl != ""
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 24.7.0 Page: 238ms Template: 13ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API