From 3cdc13f23a877082e51e535c4c08971e554ad3aa Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Fri, 19 Jul 2024 12:49:55 +0800 Subject: [PATCH] Add gpt-4o-mini for both web and api access (#749) Reference: - https://openai.com/index/gpt-4o-mini-advancing-cost-efficient-intelligence/ --- src/config/index.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/config/index.mjs b/src/config/index.mjs index 2ac9305..3678806 100644 --- a/src/config/index.mjs +++ b/src/config/index.mjs @@ -29,6 +29,7 @@ export const ModelMode = { export const chatgptWebModelKeys = [ 'chatgptFree35', 'chatgptFree4o', + 'chatgptFree4oMini', 'chatgptPlus4', 'chatgptFree35Mobile', 'chatgptPlus4Browsing', @@ -45,6 +46,7 @@ export const chatgptApiModelKeys = [ 'chatgptApi35_1106', 'chatgptApi35_0125', 'chatgptApi4o_128k', + 'chatgptApi4oMini', 'chatgptApi4_8k', 'chatgptApi4_8k_0613', 'chatgptApi4_32k', @@ -96,6 +98,7 @@ export const Models = { chatgptFree35: { value: 'text-davinci-002-render-sha', desc: 'ChatGPT (Web)' }, chatgptFree4o: { value: 'gpt-4o', desc: 'ChatGPT (Web, GPT-4o)' }, + chatgptFree4oMini: { value: 'gpt-4o-mini', desc: 'ChatGPT (Web, GPT-4o mini)' }, chatgptPlus4: { value: 'gpt-4', desc: 'ChatGPT (Web, GPT-4 All in one)' }, chatgptPlus4Browsing: { value: 'gpt-4-gizmo', desc: 'ChatGPT (Web, GPT-4)' }, @@ -104,6 +107,7 @@ export const Models = { chatgptApi35_16k: { value: 'gpt-3.5-turbo-16k', desc: 'ChatGPT (GPT-3.5-turbo-16k)' }, chatgptApi4o_128k: { value: 'gpt-4o', desc: 'ChatGPT (GPT-4o)' }, + chatgptApi4oMini: { value: 'gpt-4o-mini', desc: 'ChatGPT (GPT-4o mini)' }, chatgptApi4_8k: { value: 'gpt-4', desc: 'ChatGPT (GPT-4-8k)' }, chatgptApi4_32k: { value: 'gpt-4-32k', desc: 'ChatGPT (GPT-4-32k)' }, chatgptApi4_128k: { @@ -268,6 +272,7 @@ export const defaultConfig = { activeApiModes: [ 'chatgptFree35', 'chatgptFree4o', + 'chatgptFree4oMini', 'chatgptPlus4', 'chatgptApi35', 'chatgptApi4o_128k',