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:
Leonid Ganeline 2023-11-28 16:40:27 -08:00 committed by GitHub
parent 1ab8a14742
commit bf5787f58b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: