Skip to content

Commit

Permalink
change naming
Browse files Browse the repository at this point in the history
  • Loading branch information
milesha committed Nov 27, 2024
1 parent 13b80c5 commit 0e43a7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/intelligence-service/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def chat(request: ChatRequest):
state = {"messages": []}

result = send_message(
thread_id=request.session_id, input_message=request.message_content, state=state
session_id=request.session_id, input_message=request.message_content, state=state
)

response_message = result["response"]["messages"][-1].content
Expand Down
4 changes: 2 additions & 2 deletions server/intelligence-service/app/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def call_model(state: State):
app = workflow.compile(checkpointer=memory)


def send_message(thread_id: str, input_message: str, state: State):
config = {"configurable": {"thread_id": thread_id}}
def send_message(session_id: str, input_message: str, state: State):
config = {"configurable": {"thread_id": session_id}}
state["messages"] += [HumanMessage(input_message)]

output = app.invoke(
Expand Down

0 comments on commit 0e43a7d

Please sign in to comment.