Vue进阶之AI智能助手项目(四)——ChatGPT的调用和开发
AI智能助手项目
- 前端
-
- 接口部分
-
- src/api/index.ts
- src/utils/request/index.ts
-
- post方法
- http
- HttpOption
- src/utils/request/axios.ts
- Layout布局页面-views
-
- exception异常页面
-
- src/views/exception/404/index.vue
- src/views/exception/500/index.vue
- Layout布局页面
-
- src/views/chat/layout/Layout.vue
- src/store/modules/chat/index.ts
- src/views/chat/hooks/useChat.ts
- src/hooks/useBasicLayout.ts
前端
接口部分
src/api/index.ts
这里的接口和上述service服务端的接口是映射起来的
import type {
AxiosProgressEvent, GenericAbortSignal } from 'axios'
import {
post } from '@/utils/request'