Skip to main content
Ctrl+K
🦜🔗 LangChain  documentation - Home

Site Navigation

  • Core
  • Langchain
  • Text Splitters
  • AI21
  • Airbyte
    • Anthropic
    • AstraDB
    • AWS
    • Azure Dynamic Sessions
    • Chroma
    • Cohere
    • Couchbase
    • Elasticsearch
    • Exa
    • Fireworks
    • Google Community
    • Google GenAI
    • Google VertexAI
    • Groq
    • Huggingface
    • Milvus
    • MistralAI
    • MongoDB
    • Nomic
    • Nvidia Ai Endpoints
    • Ollama
    • OpenAI
    • Pinecone
    • Postgres
    • Prompty
    • Qdrant
    • Robocorp
    • Together
    • Unstructured
    • VoyageAI
    • Weaviate
  • LangChain docs
  • GitHub
  • X / Twitter

Site Navigation

  • Core
  • Langchain
  • Text Splitters
  • AI21
  • Airbyte
    • Anthropic
    • AstraDB
    • AWS
    • Azure Dynamic Sessions
    • Chroma
    • Cohere
    • Couchbase
    • Elasticsearch
    • Exa
    • Fireworks
    • Google Community
    • Google GenAI
    • Google VertexAI
    • Groq
    • Huggingface
    • Milvus
    • MistralAI
    • MongoDB
    • Nomic
    • Nvidia Ai Endpoints
    • Ollama
    • OpenAI
    • Pinecone
    • Postgres
    • Prompty
    • Qdrant
    • Robocorp
    • Together
    • Unstructured
    • VoyageAI
    • Weaviate
  • LangChain docs
  • GitHub
  • X / Twitter

Section Navigation

  • ai21_base
  • chat
    • ChatAdapter
    • J2ChatAdapter
    • JambaChatCompletionsAdapter
    • create_chat_adapter
  • chat_models
  • contextual_answers
  • embeddings
  • llms
  • semantic_text_splitter
  • langchain_ai21 0.1.7

chat#

Classes

chat.chat_adapter.ChatAdapter()

Common interface for the different Chat models available in AI21.

chat.chat_adapter.J2ChatAdapter()

Adapter for J2Chat models.

chat.chat_adapter.JambaChatCompletionsAdapter()

Adapter for Jamba Chat Completions.

Functions

chat.chat_factory.create_chat_adapter(model)

Create a chat adapter based on the model.

previous

AI21Base

next

ChatAdapter

© Copyright 2023, LangChain Inc.