docs: fix chat model methods table (#23233)

rst table not md
![Screenshot 2024-06-20 at 12 37 46
PM](https://github.com/langchain-ai/langchain/assets/22008038/7a03b869-c1f4-45d0-8d27-3e16f4c6eb19)
This commit is contained in:
Bagatur 2024-06-20 12:51:10 -07:00 committed by GitHub
parent a349fce880
commit 12e0c28a6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -126,14 +126,21 @@ class BaseChatModel(BaseLanguageModel[BaseMessage], ABC):
Please reference the table below for information about which Please reference the table below for information about which
methods and properties are required or optional for implementations. methods and properties are required or optional for implementations.
+----------------------------------+--------------------------------------------------------------------+-------------------+
| Method/Property | Description | Required/Optional | | Method/Property | Description | Required/Optional |
|----------------------------------|--------------------------------------------------------------------|-------------------| +==================================+====================================================================+===================+
| `_generate` | Use to generate a chat result from a prompt | Required | | `_generate` | Use to generate a chat result from a prompt | Required |
+----------------------------------+--------------------------------------------------------------------+-------------------+
| `_llm_type` (property) | Used to uniquely identify the type of the model. Used for logging. | Required | | `_llm_type` (property) | Used to uniquely identify the type of the model. Used for logging. | Required |
+----------------------------------+--------------------------------------------------------------------+-------------------+
| `_identifying_params` (property) | Represent model parameterization for tracing purposes. | Optional | | `_identifying_params` (property) | Represent model parameterization for tracing purposes. | Optional |
+----------------------------------+--------------------------------------------------------------------+-------------------+
| `_stream` | Use to implement streaming | Optional | | `_stream` | Use to implement streaming | Optional |
+----------------------------------+--------------------------------------------------------------------+-------------------+
| `_agenerate` | Use to implement a native async method | Optional | | `_agenerate` | Use to implement a native async method | Optional |
+----------------------------------+--------------------------------------------------------------------+-------------------+
| `_astream` | Use to implement async version of `_stream` | Optional | | `_astream` | Use to implement async version of `_stream` | Optional |
+----------------------------------+--------------------------------------------------------------------+-------------------+
""" # noqa: E501 """ # noqa: E501
callback_manager: Optional[BaseCallbackManager] = Field(default=None, exclude=True) callback_manager: Optional[BaseCallbackManager] = Field(default=None, exclude=True)