perf: 文件结构

This commit is contained in:
archer
2023-04-03 10:20:17 +08:00
parent caf31faf31
commit 6c4026ccef
10 changed files with 103 additions and 99 deletions

View File

@@ -1,7 +1,8 @@
import { Configuration, OpenAIApi } from 'openai';
import { Chat } from '../mongo';
import type { ChatPopulate } from '@/types/mongoSchema';
import { authToken, getOpenApiKey } from './tools';
import { authToken } from './tools';
import { getOpenApiKey } from './openai';
export const getOpenAIApi = (apiKey: string) => {
const configuration = new Configuration({