Files
OpenPipe-llm/app/src/server/utils/generateApiKey.ts
Kyle Corbitt 754e273049 Python package improvements
Added an endpoint for getting the actual stored responses, and used it to test and improve the python package.
2023-08-14 19:07:03 -07:00

6 lines
169 B
TypeScript

import cryptoRandomString from "crypto-random-string";
const KEY_LENGTH = 42;
export const generateApiKey = () => `opk_${cryptoRandomString({ length: KEY_LENGTH })}`;