mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-14 08:56:27 +00:00
Replicate fix linting
This commit is contained in:
parent
21fbbe83a7
commit
7ecee7821a
@ -1,5 +1,5 @@
|
|||||||
import logging
|
import logging
|
||||||
from typing import Any, Dict, List, Mapping, Optional
|
from typing import Any, Dict, List, Optional
|
||||||
|
|
||||||
from langchain.callbacks.manager import CallbackManagerForLLMRun
|
from langchain.callbacks.manager import CallbackManagerForLLMRun
|
||||||
from langchain.llms.base import LLM
|
from langchain.llms.base import LLM
|
||||||
@ -82,7 +82,7 @@ class Replicate(LLM):
|
|||||||
return values
|
return values
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def _identifying_params(self) -> Mapping[str, Any]:
|
def _identifying_params(self) -> Dict[str, Any]:
|
||||||
"""Get the identifying parameters."""
|
"""Get the identifying parameters."""
|
||||||
return {
|
return {
|
||||||
"model": self.model,
|
"model": self.model,
|
||||||
@ -126,7 +126,7 @@ class Replicate(LLM):
|
|||||||
|
|
||||||
self.prompt_key = input_properties[0][0]
|
self.prompt_key = input_properties[0][0]
|
||||||
|
|
||||||
inputs = {self.prompt_key: prompt, **self.input}
|
inputs: Dict = {self.prompt_key: prompt, **self.input}
|
||||||
|
|
||||||
prediction = replicate_python.predictions.create(
|
prediction = replicate_python.predictions.create(
|
||||||
version=version, input={**inputs, **kwargs}
|
version=version, input={**inputs, **kwargs}
|
||||||
|
Loading…
Reference in New Issue
Block a user