diff --git a/NOTICE b/NOTICE index 7cfacabb3..01f49905d 100644 --- a/NOTICE +++ b/NOTICE @@ -1,7 +1,7 @@ new-api Notices new-api -Copyright (c) QuantumNous and contributors. +Copyright (c) modelstoken and contributors. This project is licensed under the GNU Affero General Public License v3.0. See LICENSE for the full project license terms. @@ -19,7 +19,7 @@ Modified versions that present a user interface must also preserve a visible link to the original project in a prominent about, legal, footer, or attribution location: -https://github.com/QuantumNous/new-api +https://git.viaeon.com/admin/new-api Modified versions must not misrepresent the origin of the software and must mark their changes in accordance with AGPLv3 Section 7(c). diff --git a/common/constants.go b/common/constants.go index b0386178e..ec2cbf1db 100644 --- a/common/constants.go +++ b/common/constants.go @@ -14,7 +14,7 @@ import ( var StartTime = time.Now().Unix() // unit: second var Version = "v0.0.0" // this hard coding will be replaced automatically when building, no need to manually change -var SystemName = "New API" +var SystemName = "ModelsToken" var Footer = "" var Logo = "" var TopUpLink = "" diff --git a/electron/package.json b/electron/package.json index 137785b24..78c04c2f3 100644 --- a/electron/package.json +++ b/electron/package.json @@ -18,10 +18,10 @@ "openai", "claude" ], - "author": "QuantumNous", + "author": "modelstoken", "repository": { "type": "git", - "url": "https://github.com/QuantumNous/new-api" + "url": "https://git.viaeon.com/admin/new-api" }, "devDependencies": { "cross-env": "^7.0.3", diff --git a/main.go b/main.go index 3361b8ce9..2470e8656 100644 --- a/main.go +++ b/main.go @@ -164,7 +164,7 @@ func main() { common.SysLog(fmt.Sprintf("panic detected: %v", err)) c.JSON(http.StatusInternalServerError, gin.H{ "error": gin.H{ - "message": fmt.Sprintf("Panic detected, error: %v. Please submit a issue here: https://github.com/Calcium-Ion/new-api", err), + "message": fmt.Sprintf("Panic detected, error: %v. Please submit a issue here: https://git.viaeon.com/admin/new-api/issues", err), "type": "new_api_panic", }, }) diff --git a/middleware/recover.go b/middleware/recover.go index 745a61015..5b172cd3a 100644 --- a/middleware/recover.go +++ b/middleware/recover.go @@ -17,7 +17,7 @@ func RelayPanicRecover() gin.HandlerFunc { common.SysLog(fmt.Sprintf("stacktrace from panic: %s", string(debug.Stack()))) c.JSON(http.StatusInternalServerError, gin.H{ "error": gin.H{ - "message": fmt.Sprintf("Panic detected, error: %v. Please submit a issue here: https://github.com/Calcium-Ion/new-api", err), + "message": fmt.Sprintf("Panic detected, error: %v. Please submit a issue here: https://git.viaeon.com/admin/new-api/issues", err), "type": "new_api_panic", }, }) diff --git a/relay/channel/openai/adaptor.go b/relay/channel/openai/adaptor.go index 2c230107d..80dbf4f4c 100644 --- a/relay/channel/openai/adaptor.go +++ b/relay/channel/openai/adaptor.go @@ -221,7 +221,7 @@ func (a *Adaptor) SetupRequestHeader(c *gin.Context, header *http.Header, info * header.Set("HTTP-Referer", "https://www.newapi.ai") } if header.Get("X-OpenRouter-Title") == "" { - header.Set("X-OpenRouter-Title", "New API") + header.Set("X-OpenRouter-Title", "ModelsToken") } } return nil diff --git a/web/classic/index.html b/web/classic/index.html index 814b8e6af..baed8b4e8 100644 --- a/web/classic/index.html +++ b/web/classic/index.html @@ -16,7 +16,7 @@ content="A unified AI model hub for aggregation & distribution. It supports cross-converting various LLMs into OpenAI-compatible, Claude-compatible, or Gemini-compatible formats. A centralized gateway for personal and enterprise model management." /> -