
_routes.json a while ago but it's an area that I didn't add documentation about because, well, it should be reserved for advanced use cases where people absolutely know what they're doing and that excluding a file won't cause issues. e.g., favicon.ico would be safe to put in _routes.json, but the problem would be when people try to put actual routes in it - that would most likely lead to notable issues.import { OpenAI } from 'langchain/llms/openai';
export default defineEventHandler(async e => {
const model = new OpenAI(); //OPENAI_API_KEY set in env
});_routes.json