fix: update repository links

This commit is contained in:
Laisky.Cai 2025-01-26 12:29:20 +00:00
parent 92a21f64eb
commit 303ab407d0
5 changed files with 8 additions and 8 deletions

View File

@ -20,8 +20,8 @@ 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) 2025 JustSong. All rights reserved.")
fmt.Println("GitHub: https://github.com/songquanpeng/one-api") fmt.Println("GitHub: https://github.com/Laisky/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

@ -66,7 +66,7 @@ func (a *Adaptor) SetupRequestHeader(c *gin.Context, req *http.Request, meta *me
} }
req.Header.Set("Authorization", "Bearer "+meta.APIKey) req.Header.Set("Authorization", "Bearer "+meta.APIKey)
if meta.ChannelType == channeltype.OpenRouter { if meta.ChannelType == channeltype.OpenRouter {
req.Header.Set("HTTP-Referer", "https://github.com/songquanpeng/one-api") req.Header.Set("HTTP-Referer", "https://github.com/Laisky/one-api")
req.Header.Set("X-Title", "One API") req.Header.Set("X-Title", "One API")
} }
return nil return nil

View File

@ -38,7 +38,7 @@ const Footer = () => {
) : ( ) : (
<div className='custom-footer'> <div className='custom-footer'>
<a <a
href='https://github.com/songquanpeng/one-api' href='https://github.com/Laisky/one-api'
target='_blank' target='_blank'
> >
{systemName} {process.env.REACT_APP_VERSION}{' '} {systemName} {process.env.REACT_APP_VERSION}{' '}

View File

@ -37,8 +37,8 @@ const About = () => {
<Header as='h3'>About</Header> <Header as='h3'>About</Header>
<p>You can set the content about in the settings page, support HTML & Markdown</p> <p>You can set the content about in the settings page, support HTML & Markdown</p>
Project Repository Address Project Repository Address
<a href='https://github.com/songquanpeng/one-api'> <a href='https://github.com/Laisky/one-api'>
https://github.com/songquanpeng/one-api https://github.com/Laisky/one-api
</a> </a>
</Segment> </Segment>
</> : <> </> : <>

View File

@ -69,10 +69,10 @@ const Home = () => {
<p> <p>
Source code: Source code:
<a <a
href='https://github.com/songquanpeng/one-api' href='https://github.com/Laisky/one-api'
target='_blank' target='_blank'
> >
https://github.com/songquanpeng/one-api https://github.com/Laisky/one-api
</a> </a>
</p> </p>
<p>Startup time:{getStartTimeString()}</p> <p>Startup time:{getStartTimeString()}</p>