mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-04 12:18:24 +00:00
experimental[patch]: Fix LLM graph transformer default prompt (#18856)
Some LLMs do not allow multiple user messages in sequence.
This commit is contained in:
parent
19721246f5
commit
cda43c5a11
@ -52,14 +52,12 @@ default_prompt = ChatPromptTemplate.from_messages(
|
||||
(
|
||||
"human",
|
||||
(
|
||||
"Tip: Make sure to answer in the correct format and do "
|
||||
"not include any explanations. "
|
||||
"Use the given format to extract information from the "
|
||||
"following input: {input}"
|
||||
),
|
||||
),
|
||||
(
|
||||
"human",
|
||||
"Tip: Make sure to answer in the correct format and do not include any ",
|
||||
),
|
||||
]
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user