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