fix scoring register

This commit is contained in:
Xi Yan 2024-11-06 17:18:16 -08:00
parent def6d5d8ad
commit 0351072531
3 changed files with 19 additions and 7 deletions

View file

@ -248,7 +248,7 @@ class DatasetsRoutingTable(CommonRoutingTableImpl, Datasets):
class ScoringFunctionsRoutingTable(CommonRoutingTableImpl, Scoring):
async def list_scoring_functions(self) -> List[ScoringFnDefWithProvider]:
return await self.get_all_with_type("scoring_function")
return await self.get_all_with_type("scoring_fn")
async def get_scoring_function(
self, name: str