Skip to content

Commit

Permalink
Merge pull request #13 from pfnet-research/mitmul/fix-rephraze-quiz
Browse files Browse the repository at this point in the history
Fix rephrase_quiz
  • Loading branch information
mitmul authored Dec 9, 2024
2 parents cea9531 + 708c90b commit 381cd60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/rephrase_quiz/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

from langchain_core.messages import HumanMessage, SystemMessage
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.messages import SystemMessage
from langchain_core.prompts import ChatPromptTemplate, HumanMessagePromptTemplate
from langchain_core.tools import tool
from langchain_openai import ChatOpenAI

Expand Down Expand Up @@ -67,7 +67,7 @@ def wrong_answer(feedback: str) -> str:
"---\n"
"問題文: 台風10号が近づいている。\n",
),
HumanMessage("{input}"),
HumanMessagePromptTemplate.from_template("{input}"),
]
)

Expand Down

0 comments on commit 381cd60

Please sign in to comment.