mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-29 09:58:44 +00:00
bump version to 0.0.70 (#744)
This commit is contained in:
parent
2ba1128095
commit
7f76a1189c
@ -99,7 +99,7 @@ def _load_prompt(config: dict) -> PromptTemplate:
|
|||||||
def load_prompt(path: Union[str, Path]) -> BasePromptTemplate:
|
def load_prompt(path: Union[str, Path]) -> BasePromptTemplate:
|
||||||
"""Unified method for loading a prompt from LangChainHub or local fs."""
|
"""Unified method for loading a prompt from LangChainHub or local fs."""
|
||||||
if isinstance(path, str) and path.startswith("lc://prompts"):
|
if isinstance(path, str) and path.startswith("lc://prompts"):
|
||||||
path = os.path.relpath("lc://prompts/conversation/prompt.json", "lc://prompts/")
|
path = os.path.relpath(path, "lc://prompts/")
|
||||||
return _load_from_hub(path)
|
return _load_from_hub(path)
|
||||||
else:
|
else:
|
||||||
return _load_prompt_from_file(path)
|
return _load_prompt_from_file(path)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "langchain"
|
name = "langchain"
|
||||||
version = "0.0.69"
|
version = "0.0.70"
|
||||||
description = "Building applications with LLMs through composability"
|
description = "Building applications with LLMs through composability"
|
||||||
authors = []
|
authors = []
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
Loading…
Reference in New Issue
Block a user