[Doc] Improve api doc for perplexity (#31636)

- add param in api doc
- fix word spelling

---------

Co-authored-by: Chester Curme <chester.curme@gmail.com>
This commit is contained in:
ZhangShenao
2025-06-17 22:10:43 +08:00
committed by GitHub
parent c4c39c1ae6
commit 0b5c06e89f
2 changed files with 647 additions and 19 deletions

View File

@@ -409,7 +409,7 @@ class ChatPerplexity(BaseChatModel):
**kwargs: Any,
) -> Runnable[LanguageModelInput, _DictOrPydantic]:
"""Model wrapper that returns outputs formatted to match the given schema for Preplexity.
Currently, Preplexity only supports "json_schema" method for structured output
Currently, Perplexity only supports "json_schema" method for structured output
as per their official documentation: https://docs.perplexity.ai/guides/structured-outputs
Args:
@@ -433,6 +433,11 @@ class ChatPerplexity(BaseChatModel):
will be caught and returned as well. The final output is always a dict
with keys "raw", "parsed", and "parsing_error".
strict:
Unsupported: whether to enable strict schema adherence when generating
the output. This parameter is included for compatibility with other
chat models, but is currently ignored.
kwargs: Additional keyword args aren't supported.
Returns: