Skip to content

Commit

Permalink
fix: logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
siwonpada committed May 26, 2024
1 parent d6f2f34 commit 111f423
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routers/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ class OutputModel(BaseModel):

@router.post('/chat')
async def chat(input: InputModel) -> OutputModel:
chain = build(model)
chain = build(model.build())

return OutputModel(
output=chain.invoke({
'input_context': f'''
* 현재까지의 대화: {input.context}
* 사용자 입력: {input.chat}
''',
'''
}),
)

0 comments on commit 111f423

Please sign in to comment.