Skip to content

Instantly share code, notes, and snippets.

View bkyerv's full-sized avatar
🚙
all good

boulatbek bkyerv

🚙
all good
View GitHub Profile
import crypto from "node:crypto";
import { createAuthEndpoint } from "better-auth/api";
import { account, user } from "src/db/auth-schema";
import type { BetterAuthPlugin } from "better-auth/types";
// const TELEGRAM_BOT_TOKEN = import.meta.env.TELEGRAM_BOT_TOKEN;
// The session expiration time (30 days by default)
const SESSION_MAX_AGE = 60 * 60 * 24 * 30; // 30 days in seconds
// Helper to generate placeholder emails
@bkyerv
bkyerv / main.py
Created February 4, 2024 15:58 — forked from bjsi/main.py
Deploying RAGatouille on Modal Labs
from typing import List, Optional, TypedDict
import modal
from modal import gpu, build, enter, exit, method
class Document(TypedDict):
content: str
metadata: dict