We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bb29a0 commit d8bb922Copy full SHA for d8bb922
api/v1/runner.ts
@@ -3,6 +3,8 @@ import { OpenAIPluginPayload } from '../../types/plugins';
3
export const runtime = 'edge';
4
5
export default async (req: Request) => {
6
+ if (req.method !== 'POST') return new Response('Method Not Allowed', { status: 405 });
7
+
8
const { name, arguments: args } = (await req.json()) as OpenAIPluginPayload;
9
10
console.log(`检测到 functionCall: ${name}`);
0 commit comments