'use strict';
import { parseJsonBodyFromRequest } from '../../../fd-toolbox/lib/utils.js';
import { apiOkResponse } from '../../meta/server/web/responses.js';
import { generateAiText } from '../../ai/vercel-ai-sdk/ai.js';

var __defProp=Object['defineProperty'],__name=(_0x2a9b5f,_0x5aab27)=>__defProp(_0x2a9b5f,'name',{'value':_0x5aab27,'configurable':!![]});async function aiGeneratedTextPostRoute(_0xed3691){const {prompt:_0x3580a7,systemPrompt:_0x33cf9d}=await parseJsonBodyFromRequest(_0xed3691),_0x35fa00=await generateAiText({'prompt':_0x3580a7,'systemPrompt':_0x33cf9d}),_0x1b0c57=_0x35fa00['text'];return apiOkResponse(_0x1b0c57);}__name(aiGeneratedTextPostRoute,'aiGeneratedTextPostRoute');

export { aiGeneratedTextPostRoute };
