Update my_module.py

Add openai proxy.
This commit is contained in:
Violet956
2023-08-20 01:31:02 +08:00
committed by GitHub
parent e7ba6dc613
commit af076fb080

View File

@ -37,6 +37,9 @@ from settings import *
from urllib.parse import quote
if openai_api_proxy != "NULL":
openai.api_base = openai_api_proxy
# Capture and Execute Python Code in GPT-3 Response
def capture_python_output(code, venv_path=venv_path):
# The selected code modifies the input Python code to print the last expression in the code.