Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

give merlin config apiKey and still got a init error about open_ai_key env not provider. #3

Open
chenyuncai opened this issue Dec 18, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@chenyuncai
Copy link

Current Behavior

just the eample code with pnpm and typescript.

Expected Behavior

import { Merlin } from 'merlin-node'
const merlin = new Merlin({ merlinConfig: { apiKey: 'some key *****************************' } })

  • Version: 0.0.6-development
  • Platform:
  • Node.js Version: 20.8.0
@chenyuncai chenyuncai added the bug Something isn't working label Dec 18, 2023
@puneet1337
Copy link
Contributor

What is your platform?

@chenyuncai
Copy link
Author

windows 11.

@adarshkr357
Copy link

Solution

Before executing the program, set the environment variable in the terminal:

$env:OPENAI_API_KEY = '<API_KEY>'

Then, run your program.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants