Skip to content

Commit

Permalink
Added support for GPT-4o
Browse files Browse the repository at this point in the history
  • Loading branch information
GaiZhenbiao committed May 14, 2024
1 parent b489e70 commit ac0a1ea
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 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)](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)](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
1 change: 1 addition & 0 deletions locale/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@
"chuanhu_question_2": "最近 Apple 发布了什么新品?",
"chuanhu_question_3": "现在显卡的价格如何?",
"chuanhu_question_4": "TikTok 上有什么新梗?",
"gpt4o_description": "OpenAI 的最先进的多模态旗舰模型,比 GPT-4 Turbo 更便宜、更快。"
}
11 changes: 11 additions & 0 deletions modules/presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@

ONLINE_MODELS = [
"GPT3.5 Turbo",
"GPT-4o",
"GPT4 Turbo",
"GPT3.5 Turbo Instruct",
"GPT4",
Expand Down Expand Up @@ -227,6 +228,16 @@
"slogan": i18n("gpt_default_slogan"),
}
},
"GPT-4o": {
"model_name": "gpt-4o",
"description": "gpt4o_description",
"token_limit": 128000,
"multimodal": True,
"placeholder": {
"logo": "file=web_assets/model_logos/openai-black.webp",
"slogan": i18n("gpt_default_slogan"),
}
},
"Claude 3 Haiku": {
"model_name": "claude-3-haiku-20240307",
"description": "claude3_haiku_description",
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-4)](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)](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)](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)](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)](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)](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

0 comments on commit ac0a1ea

Please sign in to comment.