mirror of
https://github.com/documenso/documenso
synced 2026-04-21 13:27:18 +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
275 B
TypeScript
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'),
|
|
});
|