Skip to main content
Ctrl+K
🦜🔗 LangChain  documentation - Home 🦜🔗 LangChain  documentation - Home
  • Reference
Ctrl+K
Docs
  • GitHub
  • X / Twitter
Ctrl+K
  • Reference
Docs
  • GitHub
  • X / Twitter

Section Navigation

Base packages

  • Core
  • Langchain
  • Text Splitters
  • Community
  • Experimental

Integrations

  • AI21
  • Anthropic
  • AstraDB
  • AWS
  • Azure Ai
  • Azure Dynamic Sessions
  • Cerebras
  • Chroma
  • Cohere
    • chains
    • chat_models
      • ChatCohere
      • get_cohere_chat_request
      • get_cohere_chat_request_v2
      • get_role
      • get_role_v2
    • common
    • embeddings
    • llms
    • rag_retrievers
    • react_multi_hop
    • rerank
    • sql_agent
  • Deepseek
  • Elasticsearch
  • Exa
  • Fireworks
  • Google Community
  • Google GenAI
  • Google VertexAI
  • Groq
  • Huggingface
  • IBM
  • Milvus
  • MistralAI
  • MongoDB
  • Neo4J
  • Nomic
  • Nvidia Ai Endpoints
  • Ollama
  • OpenAI
  • Perplexity
  • Pinecone
  • Postgres
  • Prompty
  • Qdrant
  • Redis
  • Sema4
  • Snowflake
  • Sqlserver
  • Standard Tests
  • Tavily
  • Together
  • Unstructured
  • Upstage
  • VoyageAI
  • Weaviate
  • XAI
  • LangChain Python API Reference
  • langchain-cohere: 0.4.4
  • chat_models

chat_models#

Classes

chat_models.ChatCohere

Implements the BaseChatModel (and BaseLanguageModel) interface with Cohere's large language models.

Functions

chat_models.get_cohere_chat_request(messages, *)

Get the request for the Cohere chat API.

chat_models.get_cohere_chat_request_v2(...)

Get the request for the Cohere chat API (V2).

chat_models.get_role(message)

Get the role of the message.

chat_models.get_role_v2(message)

Get the role of the message (V2).

© Copyright 2025, LangChain Inc.