mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-05 21:12:48 +00:00
Fix typo in Prompts Templates Getting Started page (#3514)
`from_templates` -> `from_template`
This commit is contained in:
@@ -63,7 +63,7 @@ multiple_input_prompt.format(adjective="funny", content="chickens")
|
|||||||
# -> "Tell me a funny joke about chickens."
|
# -> "Tell me a funny joke about chickens."
|
||||||
```
|
```
|
||||||
|
|
||||||
If you do not wish to specify `input_variables` manually, you can also create a `PromptTemplate` using `from_templates` class method. `langchain` will automatically infer the `input_variables` based on the `template` passed.
|
If you do not wish to specify `input_variables` manually, you can also create a `PromptTemplate` using `from_template` class method. `langchain` will automatically infer the `input_variables` based on the `template` passed.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
template = "Tell me a {adjective} joke about {content}."
|
template = "Tell me a {adjective} joke about {content}."
|
||||||
|
Reference in New Issue
Block a user