diff --git a/Dockerfile b/Dockerfile index c84bbda..39ec81c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,5 @@ ADD . . # Install any needed packages specified in requirements.txt RUN pip install -r requirements.txt - # Run app.py when the container launches CMD ["python", "run.py"] \ No newline at end of file diff --git a/app/mabel/connect_openai.py b/app/mabel/connect_openai.py index ca7cbc9..eabb3cf 100644 --- a/app/mabel/connect_openai.py +++ b/app/mabel/connect_openai.py @@ -29,7 +29,7 @@ async def chatgpt_response(prompt): if "mabel" in prompt.lower(): logger.info("PROMPT: " + prompt.lower()) response = openai.ChatCompletion.create( - model="gpt-4", + model="gpt-3.5-turbo", messages=messages, max_tokens=1800, ) diff --git a/requirements.txt b/requirements.txt index b3a9f0e..7b62ff7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -openai -discord -python-dotenv \ No newline at end of file +openai==0.27.2 +discord==2.2.2 +python-dotenv==1.0.0 \ No newline at end of file