receptron/SlashGPT

CODEBOX_API_KEY=local generate a Codebox error expecting an OPENAI_API_KEY? in jupyter_runtime and /sample currency fails

richtong opened this issue · 2 comments

Is local not supported it says this works in the documentation to use codebox, but not clear on why. If I don't set it ipython works fine. What is needed to run Codebox, the OPENAI_API_KEY is set? Looking at the code in the jupyter runtime function it looks like this is in codebox.start I see in line 46 is doesn't set the key if it is set to local, but then I think line 70, it callset codbox.start and the key isn't set if it is local.

Also /sample currency no longer seems to work, complaining about token output buffer now

You need to have OPENAI_API_KEY regardless. CODEBOX_API_KEY changes the behavior of code execution (as the result of function call), not LLM.