jobs eval scoring

This commit is contained in:
Xi Yan 2025-03-13 11:30:11 -07:00
parent 7b4f7888f1
commit 36320728bf
2 changed files with 6 additions and 6 deletions

View file

@ -117,7 +117,7 @@ class Eval(Protocol):
"""
...
@webmethod(route="/eval/job/{job_id}", method="GET")
@webmethod(route="/eval/jobs/{job_id}", method="GET")
async def get_eval_job(self, job_id: str) -> Optional[EvalJob]:
"""Get a job by id.
@ -126,7 +126,7 @@ class Eval(Protocol):
"""
...
@webmethod(route="/eval/job/{job_id}", method="DELETE")
@webmethod(route="/eval/jobs/{job_id}", method="DELETE")
async def delete_eval_job(self, job_id: str) -> Optional[EvalJob]:
"""Delete a job.
@ -134,7 +134,7 @@ class Eval(Protocol):
"""
...
@webmethod(route="/eval/job/{job_id}/cancel", method="POST")
@webmethod(route="/eval/jobs/{job_id}/cancel", method="POST")
async def cancel_eval_job(self, job_id: str) -> Optional[EvalJob]:
"""Cancel a job.

View file

@ -106,7 +106,7 @@ class Scoring(Protocol):
"""
...
@webmethod(route="/scoring/job/{job_id}", method="GET")
@webmethod(route="/scoring/jobs/{job_id}", method="GET")
async def get_scoring_job(self, job_id: str) -> Optional[ScoringJob]:
"""Get a job by id.
@ -115,7 +115,7 @@ class Scoring(Protocol):
"""
...
@webmethod(route="/scoring/job/{job_id}", method="DELETE")
@webmethod(route="/scoring/jobs/{job_id}", method="DELETE")
async def delete_scoring_job(self, job_id: str) -> Optional[ScoringJob]:
"""Delete a job.
@ -123,7 +123,7 @@ class Scoring(Protocol):
"""
...
@webmethod(route="/scoring/job/{job_id}/cancel", method="POST")
@webmethod(route="/scoring/jobs/{job_id}/cancel", method="POST")
async def cancel_scoring_job(self, job_id: str) -> Optional[ScoringJob]:
"""Cancel a job.