mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-04 04:28:58 +00:00
[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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user