From f6cdda9029071d838e58318470fc384f86d1b8a6 Mon Sep 17 00:00:00 2001 From: NieXi Date: Sat, 27 Jan 2024 15:55:44 +0800 Subject: [PATCH 1/2] update google api region (#3934) Co-authored-by: GH Action - Upstream Sync --- app/api/google/[...path]/route.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/api/google/[...path]/route.ts b/app/api/google/[...path]/route.ts index 869bd507638..ebd19289129 100644 --- a/app/api/google/[...path]/route.ts +++ b/app/api/google/[...path]/route.ts @@ -101,19 +101,14 @@ export const POST = handle; export const runtime = "edge"; export const preferredRegion = [ - "arn1", "bom1", - "cdg1", "cle1", "cpt1", - "dub1", - "fra1", "gru1", "hnd1", "iad1", "icn1", "kix1", - "lhr1", "pdx1", "sfo1", "sin1", From 91a5f4af9adcf4eef29022f54a1097ba88d1f3c2 Mon Sep 17 00:00:00 2001 From: H0llyW00dzZ Date: Sat, 27 Jan 2024 14:58:35 +0700 Subject: [PATCH 2/2] Feat Models [GPT-4-turbo] (#3932) [+] feat(constant.ts): add new models to DEFAULT_MODELS array --- app/constant.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/constant.ts b/app/constant.ts index af64c92dc9c..8f251814088 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -107,6 +107,7 @@ export const SUMMARIZE_MODEL = "gpt-3.5-turbo"; export const KnowledgeCutOffDate: Record = { default: "2021-09", + "gpt-4-turbo-preview": "2023-04", "gpt-4-1106-preview": "2023-04", "gpt-4-0125-preview": "2023-04", "gpt-4-vision-preview": "2023-04", @@ -167,6 +168,15 @@ export const DEFAULT_MODELS = [ providerType: "openai", }, }, + { + name: "gpt-4-turbo-preview", + available: true, + provider: { + id: "openai", + providerName: "OpenAI", + providerType: "openai", + }, + }, { name: "gpt-4-1106-preview", available: true,