Skip to main content
Module

x/openai/core.ts>readEnv

Deno build of the official Typescript library for the OpenAI API. Source: https://github.com/openai/openai-node
Extremely Popular
Go to Latest
variable readEnv
import { readEnv } from "https://deno.land/x/openai@v4.20.1/core.ts";

Read an environment variable.

Will return undefined if the environment variable doesn't exist or cannot be accessed.

type

(env: string) => string | undefined