We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ba1128 commit 7f76a11Copy full SHA for 7f76a11
langchain/prompts/loading.py
@@ -99,7 +99,7 @@ def _load_prompt(config: dict) -> PromptTemplate:
99
def load_prompt(path: Union[str, Path]) -> BasePromptTemplate:
100
"""Unified method for loading a prompt from LangChainHub or local fs."""
101
if isinstance(path, str) and path.startswith("lc://prompts"):
102
- path = os.path.relpath("lc://prompts/conversation/prompt.json", "lc://prompts/")
+ path = os.path.relpath(path, "lc://prompts/")
103
return _load_from_hub(path)
104
else:
105
return _load_prompt_from_file(path)
pyproject.toml
@@ -1,6 +1,6 @@
1
[tool.poetry]
2
name = "langchain"
3
-version = "0.0.69"
+version = "0.0.70"
4
description = "Building applications with LLMs through composability"
5
authors = []
6
license = "MIT"
0 commit comments