mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 04:04:14 +00:00
chore: indicate to mypy that InferenceProvider.rerank is concrete (#3238)
This commit is contained in:
parent
da73f1a180
commit
2ee898cc4c
6 changed files with 1 additions and 62 deletions
|
@ -1170,6 +1170,7 @@ class InferenceProvider(Protocol):
|
|||
:returns: RerankResponse with indices sorted by relevance score (descending).
|
||||
"""
|
||||
raise NotImplementedError("Reranking is not implemented")
|
||||
return # this is so mypy's safe-super rule will consider the method concrete
|
||||
|
||||
@webmethod(route="/openai/v1/completions", method="POST")
|
||||
async def openai_completion(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue