refactor: refactor chat_handler, add support for Azure and ChatGLM

This commit is contained in:
RockYang
2023-09-04 06:43:15 +08:00
parent d06f94bddd
commit 0cc9cf8b45
34 changed files with 1212 additions and 513 deletions

View File

@@ -4,7 +4,7 @@ const routes = [
{
name: 'home',
path: '/',
meta: {title: 'ChatGPT-Plus'},
meta: {title: '首页'},
component: () => import('@/views/Home.vue'),
},
{
@@ -23,7 +23,7 @@ const routes = [
{
name: 'plus',
path: '/chat',
meta: {title: 'ChatGPT-智能助手V3'},
meta: {title: '创作中心'},
component: () => import('@/views/ChatPlus.vue'),
},
{
@@ -166,7 +166,7 @@ const router = createRouter({
// dynamic change the title when router change
router.beforeEach((to, from, next) => {
if (to.meta.title) {
document.title = `${to.meta.title} | ChatGPT-PLUS`
document.title = `${to.meta.title} | ${process.env.VUE_APP_TITLE}`
}
next()
})