mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-28 14:05:02 +00:00
docs: improve output_version
description (#31977)
This commit is contained in:
parent
7c1b59d26a
commit
3c19cafab0
@ -311,14 +311,16 @@ class BaseChatModel(BaseLanguageModel[BaseMessage], ABC):
|
||||
does not properly support streaming.
|
||||
"""
|
||||
|
||||
output_version: str = "v0"
|
||||
output_version: Literal["v0", "v1"] = "v0"
|
||||
"""Version of AIMessage output format to use.
|
||||
|
||||
This field is used to roll-out new output formats for chat model AIMessages
|
||||
in a backwards-compatible way.
|
||||
|
||||
All chat models currently support the default of ``"v0"``. Chat model subclasses
|
||||
can override with (customizable) supported values.
|
||||
``'v1'`` standardizes output format using a list of typed ContentBlock dicts. We
|
||||
recommend this for new applications.
|
||||
|
||||
All chat models currently support the default of ``"v0"``.
|
||||
|
||||
.. versionadded:: 0.3.68
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user