Skip to content

Commit

Permalink
update api
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Aug 4, 2024
1 parent 2c0f4dd commit 43da81e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ovos_flashrank_solver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ def __init__(self, config=None):
super().__init__(config)

# plugin methods to override
def rerank(self, query: str, options: List[str],
context: Optional[dict] = None) -> List[Tuple[float, str]]:
def rerank(self, query: str, options: List[str], lang: Optional[str] = None) -> List[Tuple[float, str]]:
"""
rank options list, returning a list of tuples (score, text)
"""
Expand Down

0 comments on commit 43da81e

Please sign in to comment.