openai 3.5

This commit is contained in:
William Lane
2023-04-04 10:57:33 -07:00
parent 1c0d231101
commit edc79ec184
3 changed files with 4 additions and 5 deletions

View File

@@ -14,6 +14,5 @@ ADD . .
# Install any needed packages specified in requirements.txt # Install any needed packages specified in requirements.txt
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
# Run app.py when the container launches # Run app.py when the container launches
CMD ["python", "run.py"] CMD ["python", "run.py"]

View File

@@ -29,7 +29,7 @@ async def chatgpt_response(prompt):
if "mabel" in prompt.lower(): if "mabel" in prompt.lower():
logger.info("PROMPT: " + prompt.lower()) logger.info("PROMPT: " + prompt.lower())
response = openai.ChatCompletion.create( response = openai.ChatCompletion.create(
model="gpt-4", model="gpt-3.5-turbo",
messages=messages, messages=messages,
max_tokens=1800, max_tokens=1800,
) )

View File

@@ -1,3 +1,3 @@
openai openai==0.27.2
discord discord==2.2.2
python-dotenv python-dotenv==1.0.0