Skip to content

Commit 6164b09

Browse files
authored
chore: change port number to default toolbox port (#135)
1 parent dd8a6c5 commit 6164b09

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/toolbox-core/src/toolbox_core/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(
4040
Initializes the ToolboxClient.
4141
4242
Args:
43-
url: The base URL for the Toolbox service API (e.g., "http://localhost:8000").
43+
url: The base URL for the Toolbox service API (e.g., "http://localhost:5000").
4444
session: An optional existing `aiohttp.ClientSession` to use.
4545
If None (default), a new session is created internally. Note that
4646
if a session is provided, its lifecycle (including closing)

packages/toolbox-langchain/tests/test_utils.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,15 @@ async def test_invoke_tool(self, mock_post):
214214
mock_post.return_value.__aenter__.return_value = mock_response
215215

216216
result = await _invoke_tool(
217-
"http://localhost:8000",
217+
"http://localhost:5000",
218218
aiohttp.ClientSession(),
219219
"tool_name",
220220
{"input": "data"},
221221
{},
222222
)
223223

224224
mock_post.assert_called_once_with(
225-
"http://localhost:8000/api/tool/tool_name/invoke",
225+
"http://localhost:5000/api/tool/tool_name/invoke",
226226
json={"input": "data"},
227227
headers={},
228228
)
@@ -241,15 +241,15 @@ async def test_invoke_tool_unsecure_with_auth(self, mock_post):
241241
match="Sending ID token over HTTP. User data may be exposed. Use HTTPS for secure communication.",
242242
):
243243
result = await _invoke_tool(
244-
"http://localhost:8000",
244+
"http://localhost:5000",
245245
aiohttp.ClientSession(),
246246
"tool_name",
247247
{"input": "data"},
248248
{"my_test_auth": lambda: "fake_id_token"},
249249
)
250250

251251
mock_post.assert_called_once_with(
252-
"http://localhost:8000/api/tool/tool_name/invoke",
252+
"http://localhost:5000/api/tool/tool_name/invoke",
253253
json={"input": "data"},
254254
headers={"my_test_auth_token": "fake_id_token"},
255255
)
@@ -267,15 +267,15 @@ async def test_invoke_tool_secure_with_auth(self, mock_post):
267267
with warnings.catch_warnings():
268268
warnings.simplefilter("error")
269269
result = await _invoke_tool(
270-
"https://localhost:8000",
270+
"https://localhost:5000",
271271
session,
272272
"tool_name",
273273
{"input": "data"},
274274
{"my_test_auth": lambda: "fake_id_token"},
275275
)
276276

277277
mock_post.assert_called_once_with(
278-
"https://localhost:8000/api/tool/tool_name/invoke",
278+
"https://localhost:5000/api/tool/tool_name/invoke",
279279
json={"input": "data"},
280280
headers={"my_test_auth_token": "fake_id_token"},
281281
)

0 commit comments

Comments
 (0)