Add ChatGPT 4o

This commit is contained in:
kwaroran
2024-08-14 21:54:52 +09:00
parent 2ab318188e
commit b9a2a9f353
3 changed files with 4 additions and 1 deletions

View File

@@ -55,7 +55,7 @@
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('gpt4_turbo_20240409')}}>GPT-4 Turbo 20240409</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('gpt4o-2024-05-13')}}>GPT-4o 20240513</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('gpt4o-2024-08-06')}}>GPT-4o 20240806</button>
<button class="p-2 hover:text-green-500" on:click={() => {changeModel('gpt4o-chatgpt')}}>GPT-4o ChatGPT</button>
{/if}
</Arcodion>
<Arcodion name="Anthropic Claude">

View File

@@ -101,6 +101,8 @@ export function getModelName(name:string){
return 'GPT-4o (2024-05-13)'
case 'gpt4o-2024-08-06':
return 'GPT-4o (2024-08-06)'
case 'gpt4o-chatgpt':
return 'GPT-4o ChatGPT'
case 'gpt4om':
return 'GPT-4o Mini'
case 'gpt4om-2024-07-18':

View File

@@ -423,6 +423,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
: requestModel === 'gpt4om' ? 'gpt-4o-mini'
: requestModel === 'gpt4om-2024-07-18' ? 'gpt-4o-mini-2024-07-18'
: requestModel === 'gpt4o-2024-08-06' ? 'gpt-4o-2024-08-06'
: requestModel === 'gpt4o-chatgpt' ? 'chatgpt-4o-latest '
: (!requestModel) ? 'gpt-3.5-turbo'
: requestModel,
messages: formatedChat,