Llama2-Code-Interpreter needs an openai_api_key ?
itsPreto opened this issue · comments
I am facing this issue too. This project seems sus
The problem is in BaseCodeInterpreter.py
import openai
from retrying import retry
import logging
from termcolor import colored
# load from key file
with open('./openai_api_key.txt') as f:
OPENAI_API_KEY = key = f.read()
openai.api_key = OPENAI_API_KEY
The OpenAI-specific stuff should be moved to GPTCodeInterpreter.py
As a workaround, it should suffice to do: 'touch ./openai_api_key.txt' (haven’t tested it)
Sorry for inconvenience I solved the issue at the commit cd2cb04.