mirror of
https://github.com/hwchase17/langchain.git
synced 2026-03-18 02:53:16 +00:00
lint
This commit is contained in:
@@ -496,7 +496,7 @@ class LLM(BaseLLM):
|
||||
"""Run the LLM on the given prompt and input."""
|
||||
new_arg_supported = inspect.signature(self._acall).parameters.get("run_manager")
|
||||
|
||||
async def get_completion(prompt):
|
||||
async def get_completion(prompt: str) -> str:
|
||||
return (
|
||||
await self._acall(prompt, stop=stop, run_manager=run_manager)
|
||||
if new_arg_supported
|
||||
|
||||
Reference in New Issue
Block a user