Docs: Add custom chat model documenation (#17595)

This PR adds documentation about how to implement a custom chat model.
This commit is contained in:
Eugene Yurtsev
2024-02-19 22:03:49 -05:00
committed by GitHub
parent 07ee41d284
commit 865cabff05
3 changed files with 651 additions and 4 deletions

View File

@@ -794,7 +794,7 @@ class BaseChatModel(BaseLanguageModel[BaseMessage], ABC):
class SimpleChatModel(BaseChatModel):
"""Simple Chat Model."""
"""A simplified implementation for a chat model to inherit from."""
def _generate(
self,