Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

byok.ts

9 lines288 Bytes

1import { defineByok, defaultByokStorage } from '@tanstack/ai-client/byok'
2​
3export const byok = defineByok({
4 storage: defaultByokStorage(),
5})
6​
7// Env OPENAI_API_KEY on the server can fill the request. Do not block send
8// when the browser has no saved key.
9byok.setServerCoverage(true)