mirror of
https://github.com/langgenius/dify.git
synced 2026-06-08 09:27:39 +08:00
fix: correct override decorator placement
This commit is contained in:
@ -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,
|
||||
*,
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user