mirror of
https://github.com/AskDavis/nate-discord.git
synced 2025-12-31 20:55:58 -08:00
openai 3.5
This commit is contained in:
@@ -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"]
|
||||
@@ -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,
|
||||
)
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
openai
|
||||
discord
|
||||
python-dotenv
|
||||
openai==0.27.2
|
||||
discord==2.2.2
|
||||
python-dotenv==1.0.0
|
||||
Reference in New Issue
Block a user