This commit is contained in:
Nuno Campos
2023-10-23 10:30:28 +01:00
parent 8284a6b6ea
commit 948ab93563
+1 -6
View File
@@ -63,12 +63,7 @@ gpt4 = ChatOpenAI(model="gpt-4")
# chains
drafter_chain = (
{"question": RunnablePassthrough(input_type=str)}
| drafter_prompt
| gpt3
| StrOutputParser()
)
drafter_chain = drafter_prompt | gpt3 | StrOutputParser()
editor_chain = (
editor_prompt