Skip to content

Commit 9a7a0cd

Browse files
authored
Lint
1 parent 4aa4000 commit 9a7a0cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/high_level_api/langchain_custom_llm.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import argparse
2-
3-
from llama_cpp import Llama
2+
from typing import Any, List, Mapping, Optional
43

54
from langchain.llms.base import LLM
6-
from typing import Optional, List, Mapping, Any
5+
6+
from llama_cpp import Llama
77

88

99
class LlamaLLM(LLM):
@@ -42,8 +42,8 @@ def _identifying_params(self) -> Mapping[str, Any]:
4242
print(f"Answer: {answer.strip()}")
4343

4444
# Using in a chain
45-
from langchain.prompts import PromptTemplate
4645
from langchain.chains import LLMChain
46+
from langchain.prompts import PromptTemplate
4747

4848
prompt = PromptTemplate(
4949
input_variables=["product"],

0 commit comments

Comments
 (0)