Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

352 B
Raw Blame
import { createClient, DeepgramClient } from '@deepgram/sdk';
import { Env } from '../types';

let deepgramClientInstance: DeepgramClient | null = null;

export function getDeepgramClient(env: Env): DeepgramClient {
  if (!deepgramClientInstance) {
    deepgramClientInstance = createClient(env.DEEPGRAM_API_KEY);
  }
  return deepgramClientInstance;
}