mirror of
https://github.com/documenso/documenso
synced 2026-05-06 06:38:19 +00:00
Use Gemini to handle detection of recipients and fields within documents. Opt in using organisation or team settings. Replaces #2128 since the branch was cursed and would include dependencies that weren't even in the lock file. https://github.com/user-attachments/assets/e6cbb58f-62b9-4079-a9ae-7af5c4f2e4ec
9 lines
334 B
TypeScript
9 lines
334 B
TypeScript
import { Hono } from 'hono';
|
|
|
|
import type { HonoEnv } from '../../router';
|
|
import { detectFieldsRoute } from './detect-fields';
|
|
import { detectRecipientsRoute } from './detect-recipients';
|
|
|
|
export const aiRoute = new Hono<HonoEnv>()
|
|
.route('/detect-recipients', detectRecipientsRoute)
|
|
.route('/detect-fields', detectFieldsRoute);
|