mirror of
https://github.com/hwchase17/langchain
synced 2024-11-18 09:25:54 +00:00
experimental[patch]: fixed namespace bug (#13585)
It was : `from langchain.schema.prompts import BasePromptTemplate` but because of the breaking change in the ns, it is now `from langchain.schema.prompt_template import BasePromptTemplate` This bug prevents building the API Reference for the langchain_experimental
This commit is contained in:
parent
1ab8a14742
commit
bf5787f58b
@ -6,7 +6,7 @@ from typing import Union
|
|||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
from langchain.prompts.loading import load_prompt_from_config, try_load_from_hub
|
from langchain.prompts.loading import load_prompt_from_config, try_load_from_hub
|
||||||
from langchain.schema.prompts import BasePromptTemplate
|
from langchain_core.prompts import BasePromptTemplate
|
||||||
|
|
||||||
|
|
||||||
def load_prompt(path: Union[str, Path]) -> BasePromptTemplate:
|
def load_prompt(path: Union[str, Path]) -> BasePromptTemplate:
|
||||||
|
Loading…
Reference in New Issue
Block a user