Skip to content

Commit

Permalink
fix: fix deprecated warning of importing from langchain root
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardzjl committed Oct 20, 2023
1 parent 6f484a3 commit 4ba22d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/chatbot/prompts/chatgpt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from langchain import PromptTemplate
from langchain.prompts import PromptTemplate


template = """Assistant is a large language model trained by OpenAI.
Expand Down
2 changes: 1 addition & 1 deletion api/chatbot/prompts/chatml.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Prompt template for OpenAI's Chat Markup Language, or ChatML.
See <https://github.com/openai/openai-python/blob/main/chatml.md> for more details."""

from langchain import PromptTemplate
from langchain.prompts import PromptTemplate


human_prefix = "<|im_start|>user"
Expand Down

0 comments on commit 4ba22d3

Please sign in to comment.