Skip to content

Commit

Permalink
fix deps
Browse files Browse the repository at this point in the history
  • Loading branch information
willydouhard committed Dec 17, 2023
1 parent 3176d57 commit 4f806ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/chainlit/playground/providers/langchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def format_message(self, message, prompt):
return self.prompt_message_to_langchain_message(message)

def message_to_string(self, message: BaseMessage) -> str: # type: ignore[override]
return message.content
return str(message.content)

async def create_completion(self, request):
from langchain.schema.messages import BaseMessageChunk
Expand Down
6 changes: 3 additions & 3 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ include = [
chainlit = 'chainlit.cli:cli'

[tool.poetry.dependencies]
python = ">=3.8.1"
python = ">=3.8.1,<4.0.0"
chainlit_client = "0.1.0rc5"
dataclasses_json = "^0.5.7"
uvicorn = "^0.23.2"
Expand Down Expand Up @@ -48,8 +48,8 @@ optional = true

[tool.poetry.group.tests.dependencies]
openai = ">=1.1.0"
langchain = "^0.0.331"
llama-index = "^0.8.64"
langchain = "^0.0.350"
llama-index = "^0.9.15"
transformers = "^4.30.1"
matplotlib = "3.7.1"
farm-haystack = "^1.18.0"
Expand Down

0 comments on commit 4f806ee

Please sign in to comment.