Skip to content

Commit 0b5c06e

Browse files
ZhangShenaoccurme
andauthored
[Doc] Improve api doc for perplexity (#31636)
- add param in api doc - fix word spelling --------- Co-authored-by: Chester Curme <[email protected]>
1 parent c4c39c1 commit 0b5c06e

File tree

2 files changed

+647
-19
lines changed

2 files changed

+647
-19
lines changed

libs/partners/perplexity/langchain_perplexity/chat_models.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def with_structured_output(
409409
**kwargs: Any,
410410
) -> Runnable[LanguageModelInput, _DictOrPydantic]:
411411
"""Model wrapper that returns outputs formatted to match the given schema for Preplexity.
412-
Currently, Preplexity only supports "json_schema" method for structured output
412+
Currently, Perplexity only supports "json_schema" method for structured output
413413
as per their official documentation: https://docs.perplexity.ai/guides/structured-outputs
414414
415415
Args:
@@ -433,6 +433,11 @@ def with_structured_output(
433433
will be caught and returned as well. The final output is always a dict
434434
with keys "raw", "parsed", and "parsing_error".
435435
436+
strict:
437+
Unsupported: whether to enable strict schema adherence when generating
438+
the output. This parameter is included for compatibility with other
439+
chat models, but is currently ignored.
440+
436441
kwargs: Additional keyword args aren't supported.
437442
438443
Returns:

0 commit comments

Comments
 (0)