Skip to content

Commit 3b64b31

Browse files
committed
coalesce typescript and python evaluation into one.
1 parent 2dbd868 commit 3b64b31

File tree

3 files changed

+12
-80
lines changed

3 files changed

+12
-80
lines changed

tests/remote_server/remote_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def status(rollout_id: str) -> StatusResponse:
6262

6363
def main():
6464
host = os.getenv("REMOTE_SERVER_HOST", "127.0.0.1")
65-
port = int(os.getenv("REMOTE_SERVER_PORT", "7077"))
65+
port = int(os.getenv("REMOTE_SERVER_PORT", "3000"))
6666
uvicorn.run(app, host=host, port=port)
6767

6868

tests/remote_server/test_remote_langfuse.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
# MANUAL SERVER STARTUP REQUIRED:
2-
# Before running this test, start the remote server manually:
3-
# cd /Users/derekxu/Documents/code/python-sdk
4-
# python -m tests.remote_server.remote_server
52
#
6-
# The server should be running on http://127.0.0.1:7077
3+
# For Python server testing, start:
4+
# python -m tests.remote_server.remote_server (runs on http://127.0.0.1:7077)
5+
#
6+
# For TypeScript server testing, start:
7+
# cd /Users/derekxu/Documents/code/python-sdk/tests/remote_server/typescript-server
8+
# npm install
9+
# npm start
10+
#
11+
# The TypeScript server should be running on http://127.0.0.1:3000
12+
# You only need to start one of the servers!
713

814
import os
915
from typing import List
@@ -56,7 +62,7 @@ def rows() -> List[EvaluationRow]:
5662
generators=[rows],
5763
),
5864
rollout_processor=RemoteRolloutProcessor(
59-
remote_base_url="http://127.0.0.1:7077",
65+
remote_base_url="http://127.0.0.1:3000",
6066
timeout_seconds=30,
6167
output_data_loader=langfuse_output_data_loader,
6268
),

tests/remote_server/test_remote_langfuse_typescript.py

Lines changed: 0 additions & 74 deletions
This file was deleted.

0 commit comments

Comments
 (0)