mirror of
https://github.com/documenso/documenso.git
synced 2026-06-22 04:12:06 +10:00
7a94ee3b83
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
10 lines
334 B
TypeScript
10 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);
|