🔖 chore: English translation and other improvements (#163)

* chore: improve english translation

* fix: typo of error message

* chore: improve frontend icon

* chore: improve English translation

* chore: update PaperProps width to minWidth in TableRow.js files

* chore: Add Docker image workflow for one-api in English

---------

Co-authored-by: Martial BE <me@xiao5.info>
This commit is contained in:
Miraz Hossain
2024-04-23 14:25:40 +06:00
committed by GitHub
parent d1369eb5c6
commit a76b3f6ac2
20 changed files with 1232 additions and 409 deletions

View File

@@ -9,7 +9,7 @@ import (
// 定义供应商工厂
type AzureSpeechProviderFactory struct{}
// 创建 AliProvider
// 创建 AzureSpeechProvider
func (f AzureSpeechProviderFactory) Create(channel *model.Channel) base.ProviderInterface {
return &AzureSpeechProvider{
BaseProvider: base.BaseProvider{

View File

@@ -13,7 +13,7 @@ import (
type GeminiProviderFactory struct{}
// 创建 ClaudeProvider
// 创建 GeminiProvider
func (f GeminiProviderFactory) Create(channel *model.Channel) base.ProviderInterface {
return &GeminiProvider{
BaseProvider: base.BaseProvider{

View File

@@ -61,7 +61,7 @@ func (p *PalmProvider) getChatRequest(request *types.ChatCompletionRequest) (*ht
// 获取请求地址
fullRequestURL := p.GetFullRequestURL(url, request.Model)
if fullRequestURL == "" {
return nil, common.ErrorWrapper(nil, "invalid_baidu_config", http.StatusInternalServerError)
return nil, common.ErrorWrapper(nil, "invalid_palm_config", http.StatusInternalServerError)
}
// 获取请求头

View File

@@ -69,7 +69,7 @@ func (p *TencentProvider) getChatRequest(request *types.ChatCompletionRequest) (
// 获取请求地址
fullRequestURL := p.GetFullRequestURL(url, request.Model)
if fullRequestURL == "" {
return nil, common.ErrorWrapper(nil, "invalid_baidu_config", http.StatusInternalServerError)
return nil, common.ErrorWrapper(nil, "invalid_tencent_config", http.StatusInternalServerError)
}
// 获取请求头