docs: fix PromptGuard docs (#9659)

Fix PromptGuard docs. Noticed several trivial issues on the docs when
integrating the new class.
cc @baskaryan
This commit is contained in:
Zizhong Zhang
2023-08-23 10:04:53 -07:00
committed by GitHub
parent f0ae10a20e
commit 8a03836160
2 changed files with 7 additions and 7 deletions

View File

@@ -23,10 +23,10 @@ class PromptGuard(LLM):
Example:
.. code-block:: python
from langchain.llms import PromptGuardLLM
from langchain.llms import PromptGuard
from langchain.chat_models import ChatOpenAI
prompt_guard_llm = PromptGuardLLM(base_llm=ChatOpenAI())
prompt_guard_llm = PromptGuard(base_llm=ChatOpenAI())
"""
base_llm: BaseLanguageModel