Ruff: Add ASYNC checks (#1139)

This commit is contained in:
Christian Clauss
2024-01-10 09:39:42 +05:30
committed by GitHub
parent f3553040bc
commit 3cff5e9898
4 changed files with 26 additions and 50 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ class BaseLlmConfig(BaseConfig):
self.endpoint = endpoint
self.model_kwargs = model_kwargs
if type(prompt) is str:
if isinstance(prompt, str):
prompt = Template(prompt)
if self.validate_prompt(prompt):