Skip to content

Commit

Permalink
format: Update formatting and test
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-marion committed Oct 31, 2024
1 parent 3572f1e commit 562e1e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ class Language(Enum):
# standalone question (French-Canadian)
"condense_question_prompt": (
"Avec la conversation ci-dessous et la question de suivi, "
"reformulez la question de suivi de manière à ce qu'elle soit une question autonome."
"reformulez la question de suivi de manière à ce qu'elle soit "
"une question autonome."
),
"current_conversation_word": "Conversation en cours",
"question_word": "Question",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_chat_adapter(mocker):
input="input", chat_history=[HumanMessage(content="history")]
)

assert "Given the conversation inside the tags" in result
assert "Given the following conversation and" in result
assert "Human: history" in result
assert "Human: input" in result

Expand Down Expand Up @@ -104,7 +104,7 @@ def test_chat_without_system_adapter(mocker):
result = model.get_condense_question_prompt().format(
input="input", chat_history=[HumanMessage(content="history")]
)
assert "Given the conversation inside the tags" in result
assert "Given the following conversation and" in result
assert "Chat History" in result
assert "Human: history" in result
assert "Follow Up Input: input" in result
Expand Down

0 comments on commit 562e1e5

Please sign in to comment.