mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-30 18:48:55 +00:00
8 lines
327 B
TypeScript
8 lines
327 B
TypeScript
import type { NextApiRequest, NextApiResponse } from 'next';
|
|
import { withNextCors } from '@fastgpt/service/common/middle/cors';
|
|
import ChatCompletion from '@/pages/api/v1/chat/completions';
|
|
|
|
export default withNextCors(async function handler(req: NextApiRequest, res: NextApiResponse) {
|
|
return ChatCompletion(req, res);
|
|
});
|