From 1a97bd55c7364c7652063d0bfd6d91de8398b2c4 Mon Sep 17 00:00:00 2001 From: H0llyW00dzZ Date: Sat, 3 Feb 2024 00:19:25 +0700 Subject: [PATCH 1/3] Feat [OpenAI] [Models] gpt-3.5-turbo-0125 (#3971) - [+] feat(constant.ts): add new model 'gpt-3.5-turbo-0125' to DEFAULT_MODELS array --- app/constant.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/constant.ts b/app/constant.ts index 8f251814088..fc49e3dbc53 100644 --- a/app/constant.ts +++ b/app/constant.ts @@ -213,6 +213,15 @@ export const DEFAULT_MODELS = [ providerType: "openai", }, }, + { + name: "gpt-3.5-turbo-0125", + available: true, + provider: { + id: "openai", + providerName: "OpenAI", + providerType: "openai", + }, + }, { name: "gpt-3.5-turbo-0301", available: true, From b25a0545f5b348bbef81f4fe8d41695c3fc10d94 Mon Sep 17 00:00:00 2001 From: Duplicate4 Date: Sat, 3 Feb 2024 01:20:10 +0800 Subject: [PATCH 2/3] fix: typo (#3871) Signed-off-by: Dup4 --- app/components/settings.tsx | 4 ++-- app/store/sync.ts | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/components/settings.tsx b/app/components/settings.tsx index 409af64d3b9..35d3b0215d8 100644 --- a/app/components/settings.tsx +++ b/app/components/settings.tsx @@ -268,7 +268,7 @@ function CheckButton() { const syncStore = useSyncStore(); const couldCheck = useMemo(() => { - return syncStore.coundSync(); + return syncStore.cloudSync(); }, [syncStore]); const [checkState, setCheckState] = useState< @@ -472,7 +472,7 @@ function SyncItems() { const promptStore = usePromptStore(); const maskStore = useMaskStore(); const couldSync = useMemo(() => { - return syncStore.coundSync(); + return syncStore.cloudSync(); }, [syncStore]); const [showSyncConfigModal, setShowSyncConfigModal] = useState(false); diff --git a/app/store/sync.ts b/app/store/sync.ts index b74f6895f6d..5ff1cc6e56c 100644 --- a/app/store/sync.ts +++ b/app/store/sync.ts @@ -48,7 +48,7 @@ const DEFAULT_SYNC_STATE = { export const useSyncStore = createPersistStore( DEFAULT_SYNC_STATE, (set, get) => ({ - coundSync() { + cloudSync() { const config = get()[get().provider]; return Object.values(config).every((c) => c.toString().length > 0); }, @@ -60,8 +60,10 @@ export const useSyncStore = createPersistStore( export() { const state = getLocalAppState(); const datePart = isApp - ? `${new Date().toLocaleDateString().replace(/\//g, '_')} ${new Date().toLocaleTimeString().replace(/:/g, '_')}` - : new Date().toLocaleString(); + ? `${new Date().toLocaleDateString().replace(/\//g, "_")} ${new Date() + .toLocaleTimeString() + .replace(/:/g, "_")}` + : new Date().toLocaleString(); const fileName = `Backup-${datePart}.json`; downloadAs(JSON.stringify(state), fileName); From 4511aa4d21eda4e6e0b5130d1e3222bb30734672 Mon Sep 17 00:00:00 2001 From: H0llyW00dzZ Date: Sat, 3 Feb 2024 00:24:37 +0700 Subject: [PATCH 3/3] Fix [UI/UX] [Emoji] Update CDN (#3966) - [+] fix(emoji.tsx): update CDN url from 'cdn.jsdelivr.net' to 'fastly.jsdelivr.net' --- app/components/emoji.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/emoji.tsx b/app/components/emoji.tsx index a2a50320d7c..b2434930755 100644 --- a/app/components/emoji.tsx +++ b/app/components/emoji.tsx @@ -13,7 +13,7 @@ export function getEmojiUrl(unified: string, style: EmojiStyle) { // Whoever owns this Content Delivery Network (CDN), I am using your CDN to serve emojis // Old CDN broken, so I had to switch to this one // Author: https://github.com/H0llyW00dzZ - return `https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/${style}/64/${unified}.png`; + return `https://fastly.jsdelivr.net/npm/emoji-datasource-apple/img/${style}/64/${unified}.png`; } export function AvatarPicker(props: {