Skip to content

Commit

Permalink
update deps and add pigar to dev txt
Browse files Browse the repository at this point in the history
  • Loading branch information
azliu0 committed Apr 15, 2024
1 parent 9f1e02d commit 4dd0b15
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 15 deletions.
1 change: 1 addition & 0 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ pre-commit

# needed for pip-compile, needed to generate requirements.txt
pip-tools
pigar
5 changes: 0 additions & 5 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Refer to README.md for more information on how dependency management works.
# tl;dr: don't modify requirements.txt; instead, put requirements in requirements.in
# and run `pip-compile` to generate requirements.txt.

# Automatically generated by https://github.com/damnever/pigar.

APIFlask==2.0.2
Expand All @@ -17,5 +13,4 @@ pandas==2.1.1
psycopg2-binary==2.9.9
python-dotenv==1.0.0
redis==5.0.1
requests==2.31.0
SQLAlchemy==2.0.22
10 changes: 1 addition & 9 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@ certifi==2024.2.2
# via
# httpcore
# httpx
# requests
cffi==1.16.0
# via cryptography
charset-normalizer==3.3.2
# via requests
click==8.1.7
# via flask
cryptography==42.0.5
Expand Down Expand Up @@ -67,7 +64,6 @@ idna==3.7
# via
# anyio
# httpx
# requests
itsdangerous==2.1.2
# via flask
jinja2==3.1.2
Expand Down Expand Up @@ -117,8 +113,6 @@ pytz==2024.1
# via pandas
redis==5.0.1
# via -r requirements.in
requests==2.31.0
# via -r requirements.in
s3transfer==0.10.1
# via boto3
six==1.16.0
Expand All @@ -143,9 +137,7 @@ typing-extensions==4.11.0
tzdata==2024.1
# via pandas
urllib3==2.2.1
# via
# botocore
# requests
# via botocore
webargs==8.4.0
# via apiflask
werkzeug==3.0.2
Expand Down
2 changes: 1 addition & 1 deletion server/nlp/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def openai_response(thread: list[OpenAIMessage], sender: str) -> str:
}
]

response = openai.ChatCompletion.create(model=MODEL, messages=messages)
response = openai.chat.completions.create(model=MODEL, messages=messages)

return response["choices"][0]["message"]["content"]

Expand Down

0 comments on commit 4dd0b15

Please sign in to comment.