documenso/packages/lib/server-only/ai/google.ts
Lucas Smith 7a94ee3b83
feat: add ai detection for recipients and fields (#2271)
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
2025-12-03 23:39:41 +11:00

9 lines
275 B
TypeScript

import { createVertex } from '@ai-sdk/google-vertex';
import { env } from '../../utils/env';
export const vertex = createVertex({
project: env('GOOGLE_VERTEX_PROJECT_ID'),
location: env('GOOGLE_VERTEX_LOCATION') || 'global',
apiKey: env('GOOGLE_VERTEX_API_KEY'),
});