📝 doc: modify information (#57)

This commit is contained in:
Buer 2024-01-26 18:41:11 +08:00 committed by GitHub
parent 8646ee77ca
commit aec238aec9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 15 additions and 17 deletions

2
.github/FUNDING.yml vendored
View File

@ -1 +1 @@
custom: ['https://iamazing.cn/page/reward'] custom: ['https://github.com/MartialBE/one-api/wiki/Coffee']

View File

@ -1,8 +1,5 @@
blank_issues_enabled: false blank_issues_enabled: false
contact_links: contact_links:
- name: 项目群聊
url: https://openai.justsong.cn/
about: QQ 群828520184自动审核备注 One API
- name: 赞赏支持 - name: 赞赏支持
url: https://iamazing.cn/page/reward url: https://github.com/MartialBE/one-api/wiki/Coffee
about: 请作者喝杯咖啡,以激励作者持续开发 about: 请作者喝杯咖啡,以激励作者持续开发

View File

@ -193,7 +193,7 @@ func TestGetImageFromUrl(t *testing.T) {
}) })
} }
url := "https://raw.githubusercontent.com/songquanpeng/one-api/main/README.md" url := "https://raw.githubusercontent.com/MartialBE/one-api/main/README.md"
_, _, err := img.GetImageFromUrl(url) _, _, err := img.GetImageFromUrl(url)
assert.Error(t, err) assert.Error(t, err)
encodedBase64 := "data:image/text;base64," encodedBase64 := "data:image/text;base64,"

View File

@ -19,8 +19,9 @@ var (
func printHelp() { func printHelp() {
fmt.Println("One API " + Version + " - All in one API service for OpenAI API.") fmt.Println("One API " + Version + " - All in one API service for OpenAI API.")
fmt.Println("Copyright (C) 2023 JustSong. All rights reserved.") fmt.Println("Copyright (C) 2023 MartialBE. All rights reserved.")
fmt.Println("GitHub: https://github.com/songquanpeng/one-api") fmt.Println("Original copyright holder: JustSong")
fmt.Println("GitHub: https://github.com/MartialBE/one-api")
fmt.Println("Usage: one-api [--port <port>] [--log-dir <log directory>] [--version] [--help]") fmt.Println("Usage: one-api [--port <port>] [--log-dir <log directory>] [--version] [--help]")
} }

View File

@ -14,7 +14,7 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )
// https://github.com/songquanpeng/one-api/issues/79 // https://github.com/MartialBE/one-api/issues/79
type OpenAISubscriptionResponse struct { type OpenAISubscriptionResponse struct {
Object string `json:"object"` Object string `json:"object"`

View File

@ -2,10 +2,11 @@ package middleware
import ( import (
"fmt" "fmt"
"github.com/gin-gonic/gin"
"net/http" "net/http"
"one-api/common" "one-api/common"
"runtime/debug" "runtime/debug"
"github.com/gin-gonic/gin"
) )
func RelayPanicRecover() gin.HandlerFunc { func RelayPanicRecover() gin.HandlerFunc {
@ -16,7 +17,7 @@ func RelayPanicRecover() gin.HandlerFunc {
common.SysError(fmt.Sprintf("stacktrace from panic: %s", string(debug.Stack()))) common.SysError(fmt.Sprintf("stacktrace from panic: %s", string(debug.Stack())))
c.JSON(http.StatusInternalServerError, gin.H{ c.JSON(http.StatusInternalServerError, gin.H{
"error": gin.H{ "error": gin.H{
"message": fmt.Sprintf("Panic detected, error: %v. Please submit a issue here: https://github.com/songquanpeng/one-api", err), "message": fmt.Sprintf("Panic detected, error: %v. Please submit a issue here: https://github.com/MartialBE/one-api", err),
"type": "one_api_panic", "type": "one_api_panic",
}, },
}) })

View File

@ -1,8 +1,7 @@
[//]: # (请按照以下格式关联 issue) [//]: # "请按照以下格式关联 issue"
[//]: # (请在提交 PR 前确认所提交的功能可用,附上截图即可,这将有助于项目维护者 review & merge 该 PR谢谢) [//]: # "请在提交 PR 前确认所提交的功能可用,附上截图即可,这将有助于项目维护者 review & merge 该 PR谢谢"
[//]: # (项目维护者一般仅在周末处理 PR因此如若未能及时回复希望能理解) [//]: # "项目维护者一般仅在周末处理 PR因此如若未能及时回复希望能理解"
[//]: # (开发者交流群910657413) [//]: # "请在提交 PR 之前删除上面的注释"
[//]: # (请在提交 PR 之前删除上面的注释)
close #issue_number close #issue_number