File tree Expand file tree Collapse file tree 2 files changed +647
-19
lines changed Expand file tree Collapse file tree 2 files changed +647
-19
lines changed Original file line number Diff line number Diff line change @@ -409,7 +409,7 @@ def with_structured_output(
409
409
** kwargs : Any ,
410
410
) -> Runnable [LanguageModelInput , _DictOrPydantic ]:
411
411
"""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
413
413
as per their official documentation: https://docs.perplexity.ai/guides/structured-outputs
414
414
415
415
Args:
@@ -433,6 +433,11 @@ def with_structured_output(
433
433
will be caught and returned as well. The final output is always a dict
434
434
with keys "raw", "parsed", and "parsing_error".
435
435
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
+
436
441
kwargs: Additional keyword args aren't supported.
437
442
438
443
Returns:
You can’t perform that action at this time.
0 commit comments