mirror of
https://github.com/dataforcanada/d4c-service-geo-assistant.git
synced 2026-06-15 07:21:02 +02:00
Fix frontend and api state handling (#11)
* Fix frontend and api state handling * Increase timeout to 6 mins * Fix test
This commit is contained in:
@@ -31,6 +31,7 @@ def stream_chat(user_message: str):
|
||||
"agent_state_input": {
|
||||
"messages": [{"type": "human", "content": user_message}],
|
||||
"place": None,
|
||||
"search_area": None,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -38,7 +39,7 @@ def stream_chat(user_message: str):
|
||||
"POST",
|
||||
f"{API_BASE_URL}/chat",
|
||||
json=request_body,
|
||||
timeout=60.0,
|
||||
timeout=360.0,
|
||||
) as response:
|
||||
response.raise_for_status()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user