Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/cheshire-cat-ai/core int…
Browse files Browse the repository at this point in the history
…o develop
  • Loading branch information
pieroit committed Feb 5, 2025
2 parents e353bf1 + 7d67129 commit ff2b79e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions core/cat/looking_glass/stray_cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from typing import Literal, get_args, List, Dict, Union, Any

from langchain.docstore.document import Document
from langchain_core.messages import SystemMessage, BaseMessage
from langchain_core.messages import BaseMessage, HumanMessage
from langchain_core.runnables import RunnableConfig, RunnableLambda
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.output_parsers.string import StrOutputParser
Expand Down Expand Up @@ -322,8 +322,8 @@ def llm(self, prompt: str, stream: bool = False) -> str:
# here we deal with motherfucking langchain
prompt = ChatPromptTemplate(
messages=[
SystemMessage(content=prompt)
# TODO: add here optional convo history passed to the method,
HumanMessage(content=prompt) # We decided to use HumanMessage for wide-range compatibility even if it could bring some problem with tokenizers
# TODO: add here optional convo history passed to the method,
# or taken from working memory
]
)
Expand Down
2 changes: 1 addition & 1 deletion core/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "Cheshire-Cat"
description = "Production ready AI assistant framework"
version = "1.8.0"
version = "1.8.1"
requires-python = ">=3.10"
license = { file = "LICENSE" }
authors = [
Expand Down

0 comments on commit ff2b79e

Please sign in to comment.