Skip to content

Commit

Permalink
chore: updated locale and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
GaiZhenbiao committed Sep 13, 2024
1 parent c902532 commit de260eb
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

| API 调用模型 | 备注 | 本地部署模型 | 备注 |
| :---: | --- | :---: | --- |
| [ChatGPT(GPT-4、GPT-4o)](https://chat.openai.com) | 支持微调 gpt-3.5 | [ChatGLM](https://github.com/THUDM/ChatGLM-6B) ([ChatGLM2](https://github.com/THUDM/ChatGLM2-6B)) ([ChatGLM3](https://huggingface.co/THUDM/chatglm3-6b)) ||
| [ChatGPT(GPT-4、GPT-4o、o1)](https://chat.openai.com) | 支持微调 gpt-3.5 | [ChatGLM](https://github.com/THUDM/ChatGLM-6B) ([ChatGLM2](https://github.com/THUDM/ChatGLM2-6B)) ([ChatGLM3](https://huggingface.co/THUDM/chatglm3-6b)) ||
| [Azure OpenAI](https://azure.microsoft.com/en-us/products/ai-services/openai-service) | | [LLaMA](https://github.com/facebookresearch/llama) | 支持 Lora 模型 |
| [Google Gemini Pro](https://ai.google.dev/gemini-api/docs/api-key?hl=zh-cn) | | [StableLM](https://github.com/Stability-AI/StableLM) ||
| [讯飞星火认知大模型](https://xinghuo.xfyun.cn) | | [MOSS](https://github.com/OpenLMLab/MOSS) ||
Expand Down
3 changes: 2 additions & 1 deletion locale/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,5 +279,6 @@
"chuanhu_question_3": "Current prices of graphics cards?",
"chuanhu_question_4": "Any new trends on TikTok?",
"gpt4o_description": "OpenAI's most advanced, multimodal flagship model that’s cheaper and faster than GPT-4 Turbo.",
"gpt4omini_description": "OpenAI's affordable and intelligent small model for fast, lightweight tasks."
"gpt4omini_description": "OpenAI's affordable and intelligent small model for fast, lightweight tasks.",
"o1_description": "The o1 series of large language models are trained with reinforcement learning to perform complex reasoning. o1 models think before they answer, producing a long internal chain of thought before responding to the user."
}
3 changes: 2 additions & 1 deletion locale/ja_JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,5 +193,6 @@
"🔙 恢复默认网络设置": "🔙 ネットワーク設定のリセット",
"🗑️ 删除最新对话": "🗑️ 最新の会話削除",
"🗑️ 删除最旧对话": "🗑️ 最古の会話削除",
"🧹 新的对话": "🧹 新しい会話"
"🧹 新的对话": "🧹 新しい会話",
"o1_description": "o1シリーズの大規模言語モデルは、複雑な推論を行うために強化学習で訓練されています。o1モデルは回答する前に考え、ユーザーに応答する前に長い内部思考の連鎖を生成します。"
}
3 changes: 2 additions & 1 deletion locale/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
"chuanhu_question_3": "现在显卡的价格如何?",
"chuanhu_question_4": "TikTok 上有什么新梗?",
"gpt4o_description": "OpenAI 的最先进的多模态旗舰模型,比 GPT-4 Turbo 更便宜、更快。",
"gpt4omini_description": "OpenAI 的经济实惠且智能的小型模型,适用于快速、轻量级任务。"
"gpt4omini_description": "OpenAI 的经济实惠且智能的小型模型,适用于快速、轻量级任务。",
"o1_description": "o1 系列的大型语言模型通过强化学习训练,能够执行复杂的推理任务。o1 模型在回答之前会进行思考,产生一长串内部思维链,然后再回应用户。"
}
4 changes: 2 additions & 2 deletions modules/presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
},
"o1-preview": {
"model_name": "o1-preview",
"description": "o1-preview_description",
"description": "o1_description",
"token_limit": 128000,
"multimodal": False,
"model_type": "OpenAIVision",
Expand All @@ -273,7 +273,7 @@
},
"o1-mini": {
"model_name": "o1-mini",
"description": "o1-mini_description",
"description": "o1_description",
"token_limit": 128000,
"multimodal": False,
"model_type": "OpenAIVision",
Expand Down
4 changes: 4 additions & 0 deletions modules/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,10 @@ def beautify_err_msg(err_msg):
)
if "Resource not found" in err_msg:
return i18n("请查看 config_example.json,配置 Azure OpenAI")
try:
err_msg = json.loads(err_msg)["error"]["message"]
except:
pass
return err_msg


Expand Down
2 changes: 1 addition & 1 deletion readme/README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

| API Callable Models | Remarks | Locally Deployed Models | Remarks |
| :---: | --- | :---: | --- |
| [ChatGPT(GPT-4GPT-4o)](https://chat.openai.com) | Support fine-tune gpt-3.5 | [ChatGLM](https://github.com/THUDM/ChatGLM-6B) ([ChatGLM2](https://github.com/THUDM/ChatGLM2-6B)) ([ChatGLM3](https://huggingface.co/THUDM/chatglm3-6b)) ||
| [ChatGPT(GPT-4, GPT-4o, o1)](https://chat.openai.com) | Support fine-tune gpt-3.5 | [ChatGLM](https://github.com/THUDM/ChatGLM-6B) ([ChatGLM2](https://github.com/THUDM/ChatGLM2-6B)) ([ChatGLM3](https://huggingface.co/THUDM/chatglm3-6b)) ||
| [Azure OpenAI](https://azure.microsoft.com/en-us/products/ai-services/openai-service) | | [LLaMA](https://github.com/facebookresearch/llama) | Support Lora models|
| [Google Gemini Pro](https://ai.google.dev/gemini-api/docs/api-key?hl=zh-cn) | | [StableLM](https://github.com/Stability-AI/StableLM)||
| [iFlytek Starfire Cognition Large Model](https://xinghuo.xfyun.cn) | | [MOSS](https://github.com/OpenLMLab/MOSS)||
Expand Down
2 changes: 1 addition & 1 deletion readme/README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

| API呼び出しモデル | 備考 | ローカルデプロイモデル | 備考 |
| :---: | --- | :---: | --- |
| [ChatGPT(GPT-4、GPT-4o)](https://chat.openai.com) | gpt-3.5の微調整をサポート | [ChatGLM](https://github.com/THUDM/ChatGLM-6B) ([ChatGLM2](https://github.com/THUDM/ChatGLM2-6B)) ([ChatGLM3](https://huggingface.co/THUDM/chatglm3-6b)) ||
| [ChatGPT(GPT-4、GPT-4o、o1)](https://chat.openai.com) | gpt-3.5の微調整をサポート | [ChatGLM](https://github.com/THUDM/ChatGLM-6B) ([ChatGLM2](https://github.com/THUDM/ChatGLM2-6B)) ([ChatGLM3](https://huggingface.co/THUDM/chatglm3-6b)) ||
| [Azure OpenAI](https://azure.microsoft.com/en-us/products/ai-services/openai-service) | | [LLaMA](https://github.com/facebookresearch/llama) | Loraモデルのサポートあり |
| [Google Gemini Pro](https://ai.google.dev/gemini-api/docs/api-key?hl=zh-cn) | | [StableLM](https://github.com/Stability-AI/StableLM)||
| [讯飞星火认知大模型](https://xinghuo.xfyun.cn) | | [MOSS](https://github.com/OpenLMLab/MOSS)||
Expand Down
2 changes: 1 addition & 1 deletion readme/README_ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

| API 호출 모델들 | 설명 | 로컬 배포 모델 | 설명 |
|:-------------------------------------------------------------------------------------:|-----------------------|:-------------------------------------------------------------------------------------------------:|---------------------|
| [ChatGPT(GPT-4、GPT-4o)](https://chat.openai.com) | gpt-3.5 파인튜닝 지원 | [ChatGLM](https://github.com/THUDM/ChatGLM-6B) ([ChatGLM2](https://github.com/THUDM/ChatGLM2-6B)) |
| [ChatGPT(GPT-4、GPT-4o、o1)](https://chat.openai.com) | gpt-3.5 파인튜닝 지원 | [ChatGLM](https://github.com/THUDM/ChatGLM-6B) ([ChatGLM2](https://github.com/THUDM/ChatGLM2-6B)) |
| [Azure OpenAI](https://azure.microsoft.com/en-us/products/ai-services/openai-service) | | [LLaMA](https://github.com/facebookresearch/llama) | Lora 모델 지원
| [Google PaLM](https://developers.generativeai.google/products/palm) | 스트리밍 미지원 | [StableLM](https://github.com/Stability-AI/StableLM)
| [iFlytek Starfire Cognition Large Model](https://xinghuo.xfyun.cn) | | [MOSS](https://github.com/OpenLMLab/MOSS)
Expand Down
2 changes: 1 addition & 1 deletion readme/README_ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

| Модель с использованием API | Примечание | Локально развернутые модели | Примечание |
| :---: | --- | :---: | --- |
| [ChatGPT (GPT-4)](https://chat.openai.com) | Поддерживает микронастройку gpt-3.5 | [ChatGLM](https://github.com/THUDM/ChatGLM-6B) ([ChatGLM2](https://github.com/THUDM/ChatGLM2-6B)) ([ChatGLM3](https://huggingface.co/THUDM/chatglm3-6b)) ||
| [ChatGPT (GPT-4、GPT-4o、o1)](https://chat.openai.com) | Поддерживает микронастройку gpt-3.5 | [ChatGLM](https://github.com/THUDM/ChatGLM-6B) ([ChatGLM2](https://github.com/THUDM/ChatGLM2-6B)) ([ChatGLM3](https://huggingface.co/THUDM/chatglm3-6b)) ||
| [Azure OpenAI](https://azure.microsoft.com/en-us/products/ai-services/openai-service) | | [LLaMA](https://github.com/facebookresearch/llama) | Поддерживает модель Lora |
| [Google Gemini Pro](https://ai.google.dev/gemini-api/docs/api-key?hl=zh-cn) | | [StableLM](https://github.com/Stability-AI/StableLM)||
| [Xunfei Xinghuo Cognitive Model](https://xinghuo.xfyun.cn) | | [MOSS](https://github.com/OpenLMLab/MOSS)||
Expand Down

0 comments on commit de260eb

Please sign in to comment.