Closed JensRoland closed 2 months ago
The error indicates that no bearer token was provided. So it sounds like OPENAI_API_KEY
is empty
That's what I thought but I couldn't work out why my env var wasn't available despite being set globally and in a .env
file.
Turns out to be because notebook support in VS Code is a little quirky. Moving the .env
file to the /notebooks
folder solved it.
Running the first cell of the example notebook, I get:
I have added the OPENAI_API_KEY as an env var. Not sure what the problem is. I am using an M1 Mac so had to build the tree-sitter-python wheel and downgrade Numpy to get i to run, but this error doesn't seem related to that?
Partial error log: