Spaces:
Sleeping
Sleeping
Commit
·
553449b
1
Parent(s):
31f7a40
port correction
Browse files
orchestrator/orchestrator.py
CHANGED
@@ -27,24 +27,24 @@ def get_orchertration_resposne(query, history):
|
|
27 |
|
28 |
if data["tool"] == "get_change":
|
29 |
result = requests.post(
|
30 |
-
url="http://127.0.0.1:
|
31 |
json=data["parameters"],
|
32 |
).json()
|
33 |
|
34 |
elif data["tool"] == "get_earning":
|
35 |
result = requests.post(
|
36 |
-
url="http://127.0.0.1:
|
37 |
json=data["parameters"],
|
38 |
).json()
|
39 |
|
40 |
elif data["tool"] == "get_portfolio_status":
|
41 |
result = requests.post(
|
42 |
-
url="http://127.0.0.1:
|
43 |
).json()
|
44 |
|
45 |
elif data["tool"] == "get_knowledge":
|
46 |
result = requests.post(
|
47 |
-
url="http://127.0.0.1:
|
48 |
).json()
|
49 |
|
50 |
elif data["tool"] == None:
|
|
|
27 |
|
28 |
if data["tool"] == "get_change":
|
29 |
result = requests.post(
|
30 |
+
url="http://127.0.0.1:7860/data/get_historical_data",
|
31 |
json=data["parameters"],
|
32 |
).json()
|
33 |
|
34 |
elif data["tool"] == "get_earning":
|
35 |
result = requests.post(
|
36 |
+
url="http://127.0.0.1:7860/data/get_earning_metrics",
|
37 |
json=data["parameters"],
|
38 |
).json()
|
39 |
|
40 |
elif data["tool"] == "get_portfolio_status":
|
41 |
result = requests.post(
|
42 |
+
url="http://127.0.0.1:7860/data/get_portfolio_data", json=data["parameters"]
|
43 |
).json()
|
44 |
|
45 |
elif data["tool"] == "get_knowledge":
|
46 |
result = requests.post(
|
47 |
+
url="http://127.0.0.1:7860/data/get_knowledge", json=data["parameters"]
|
48 |
).json()
|
49 |
|
50 |
elif data["tool"] == None:
|