POST
Default HTTP handler exported from peam/server
Overview
A ready-to-use HTTP handler exported from peam/server. It is equivalent to createChat with default options:
import { createChat } from 'peam/server';
export const POST = createChat().handler;Usage
export { POST } from 'peam/server';Notes
- Uses the default chat runtime configuration.
- Expects a POST request with the
ChatRequestBodyshape (messagesand optionalsummary).