Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:[BE] dict response modify #67

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified agentPersona/__pycache__/routes.cpython-311.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions agentPersona/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ def plan():
input_data = {"travel_plan": travel_plan}
location_response = location_chain.invoke(input_data)
location_response = location_response.strip().strip("```json")
location_response = json.loads(location_response)

print(travel_info)
print(plan_response)
Expand Down Expand Up @@ -194,6 +193,7 @@ def plan():
# status=500
# )

location_response = json.loads(location_response)
plan_response_data = {"response": plan_response,
"follow_up": follow_up_message,
"user_id": user_id,
Expand Down Expand Up @@ -289,7 +289,6 @@ def modify3():
input_data = {"travel_plan": travel_plan}
location_response = location_chain.invoke(input_data)
location_response = location_response.strip().strip("```json")
location_response = json.loads(location_response)

print(modification_response)
print(location_response)
Expand All @@ -304,6 +303,7 @@ def modify3():
travel_info = TravelPlan.query.get(user_id).travel_info
follow_up_message = "수정이 완료되었습니다. 추가 수정이 필요하면 말씀해주세요! 😊"

location_response = json.loads(location_response)
# JSON 응답 생성
modify_response_data = {
"response": modification_response,
Expand Down