Skip to content

Allow passing access token in constructor #2

@Pistus

Description

@Pistus

We have a bit different setup with our env so I need to pass in the env key. Would be great if you support the standard way ala. how OpenAI does it for their SDK.

const openai = new OpenAI({
  apiKey: 'My API Key', // defaults to process.env["OPENAI_API_KEY"]
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions