JambaChatCompletionsAdapter#
- class langchain_ai21.chat.chat_adapter.JambaChatCompletionsAdapter[source]#
Adapter for Jamba Chat Completions.
Methods
__init__
()call
()convert_messages
(messages)- __init__()#
- call(client: Any, stream: Literal[True], **params: Any) Iterator[ChatGenerationChunk] [source]#
- call(client: Any, stream: Literal[False], **params: Any) List[BaseMessage]
- convert_messages(messages: List[BaseMessage]) Dict[str, Any] [source]#
- Parameters:
messages (List[BaseMessage]) –
- Return type:
Dict[str, Any]