merlin-node
merlin-node copied to clipboard
give merlin config apiKey and still got a init error about open_ai_key env not provider.
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
What is your platform?
windows 11.
Solution
Before executing the program, set the environment variable in the terminal:
$env:OPENAI_API_KEY = '<API_KEY>'
Then, run your program.