fix: correct override decorator placement

This commit is contained in:
WH-2099
2026-05-23 17:34:48 +08:00
parent 7d118499df
commit c22a8d1c57
2 changed files with 2 additions and 4 deletions

View File

@ -272,7 +272,6 @@ class PluginModelRuntime(ModelRuntime):
return schema
@overload
@override
def invoke_llm(
self,
*,
@ -287,7 +286,6 @@ class PluginModelRuntime(ModelRuntime):
) -> LLMResult: ...
@overload
@override
def invoke_llm(
self,
*,
@ -338,7 +336,6 @@ class PluginModelRuntime(ModelRuntime):
)
@overload
@override
def invoke_llm_with_structured_output(
self,
*,
@ -353,7 +350,6 @@ class PluginModelRuntime(ModelRuntime):
) -> LLMResultWithStructuredOutput: ...
@overload
@override
def invoke_llm_with_structured_output(
self,
*,

View File

@ -88,9 +88,11 @@ class _LazyEmbeddings(Embeddings):
def embed_multimodal_query(self, multimodel_document: dict[str, Any]) -> list[float]:
return self._ensure().embed_multimodal_query(multimodel_document)
@override
async def aembed_documents(self, texts: list[str]) -> list[list[float]]:
return await self._ensure().aembed_documents(texts)
@override
async def aembed_query(self, text: str) -> list[float]:
return await self._ensure().aembed_query(text)