From eb2447e153dadc19efeb377305e3536d3458f9d4 Mon Sep 17 00:00:00 2001 From: Type-32 Date: Thu, 22 Feb 2024 19:34:44 +0800 Subject: [PATCH] Disabled Backend API --- app.vue | 4 ++-- nuxt.config.ts | 9 --------- pages/index.vue | 15 +++++++-------- server/api/openai.ts | 15 ++++++++------- 4 files changed, 17 insertions(+), 26 deletions(-) diff --git a/app.vue b/app.vue index fe49694..bea7f31 100644 --- a/app.vue +++ b/app.vue @@ -8,8 +8,8 @@ const onBeforeEnter = async () => { } useSeoMeta({ - title: i18n.t('role.assistant'), - ogTitle: i18n.t('role.assistant'), + title: "MoodHelper", + ogTitle: "MoodHelper", description: i18n.t('role.assistant.desc'), ogDescription: i18n.t('role.assistant.desc'), ogImage: '/moodhelper.png', diff --git a/nuxt.config.ts b/nuxt.config.ts index 2dc868e..9fc71e7 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -20,13 +20,4 @@ export default defineNuxtConfig({ devtools: { enabled: true }, css: ['~/assets/main.css'], modules: ['@nuxtjs/tailwindcss', '@nuxtjs/i18n', '@nuxt/content'], - runtimeConfig: { - public:{ - openaiApiKey: process.env.OPENAI_API_KEY, - apiModel: process.env.API_MODEL || 'gpt-3.5-turbo', - aiEndpoint: process.env.AI_ENDPOINT || 'https://api.openai.com/v1/chat/completions', - siteUrl: process.env.SITE_URL || '', - siteName: process.env.SITE_NAME || '', - } - } }) diff --git a/pages/index.vue b/pages/index.vue index 932cf51..c6f9c29 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,7 +1,6 @@