Skip to content

Commit

Permalink
Merge pull request #142 from mraniki/dev
Browse files Browse the repository at this point in the history
⬆️
  • Loading branch information
mraniki authored Oct 5, 2023
2 parents 32a4c4d + 8e20560 commit 99fec74
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fastapi==0.103.2 ; python_version >= "3.10" and python_version < "4.0"
flask-cors==4.0.0 ; python_version >= "3.10" and python_version < "4.0"
flask==3.0.0 ; python_version >= "3.10" and python_version < "4.0"
frozenlist==1.4.0 ; python_version >= "3.10" and python_version < "4.0"
g4f==0.1.4.7 ; python_version >= "3.10" and python_version < "4.0"
g4f==0.1.4.8 ; python_version >= "3.10" and python_version < "4.0"
h11==0.14.0 ; python_version >= "3.10" and python_version < "4.0"
httpcore==0.18.0 ; python_version >= "3.10" and python_version < "4.0"
httpx==0.25.0 ; python_version >= "3.10" and python_version < "4.0"
Expand Down
3 changes: 1 addition & 2 deletions myllm/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ async def chat(self, prompt):
self.conversation.add_message("ai", response)
return f"{settings.llm_prefix} {response}"
except Exception as error:
logger.error("No response from the model {}", error)
return error
logger.error("No response {}", error)

async def clear_chat_history(self):
"""
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ dynaconf = ">=3.2.0"
loguru = ">=0.6.0"
httpx = ">=0.24.1"
js2py = "^0.74"
g4f = "0.1.4.7"
curl-cffi ="0.5.7"
PyExecJS2="1.6.1"
g4f = "0.1.4.8"


[tool.poetry.group.dev.dependencies]
python-semantic-release = "^8.0.7"
Expand Down Expand Up @@ -79,7 +80,7 @@ pytest = "^7.0"
pytest-cov = "^4.1"
pytest-asyncio = "^0.21.0"
pytest-mock = "^3.11.1"
pytest-loguru = "^0.2.0"
pytest-loguru = "^0.3.0"



Expand Down

0 comments on commit 99fec74

Please sign in to comment.