LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • MCP Adapters
    • Overview
    • Agents
    • Callbacks
    • Chains
    • Chat models
    • Embeddings
    • Evaluation
    • Globals
    • Hub
    • Memory
    • Output parsers
    • Retrievers
    • Runnables
    • LangSmith
    • Storage
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    MCP Adapters
    OverviewAgentsCallbacksChainsChat modelsEmbeddingsEvaluationGlobalsHubMemoryOutput parsersRetrieversRunnablesLangSmithStorage
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-classicllms
    Module●Since v1.0

    llms

    LLMs.

    LLM classes provide access to the large language model (LLM) APIs and services.

    Functions

    function
    is_interactive_env
    function
    get_type_to_cls_dict

    Modules

    module
    gigachat
    module
    javelin_ai_gateway
    module
    writer
    module
    ai21
    module
    fake
    module
    bananadev
    module
    manifest
    module
    cohere
    module
    titan_takeoff
    module
    loading
    module
    sagemaker_endpoint
    module
    google_palm
    module
    predibase
    module
    mlflow_ai_gateway
    module
    symblai_nebula
    module
    utils
    module
    azureml_endpoint
    module
    minimax
    module
    titan_takeoff_pro
    module
    openai
    module
    pai_eas_endpoint
    module
    edenai
    module
    nlpcloud
    module
    mosaicml
    module
    gooseai
    module
    replicate
    module
    mlflow
    module
    opaqueprompts
    module
    llamacpp
    module
    anyscale
    module
    human
    module
    petals
    module
    aviary
    module
    huggingface_text_gen_inference
    module
    fireworks
    module
    forefrontai
    module
    koboldai
    module
    vertexai
    module
    modal
    module
    bittensor
    module
    ollama
    module
    predictionguard
    module
    huggingface_endpoint
    module
    volcengine_maas
    module
    deepsparse
    module
    self_hosted_hugging_face
    module
    bedrock
    module
    baseten
    module
    self_hosted
    module
    huggingface_hub
    module
    databricks
    module
    ctranslate2
    module
    pipelineai
    module
    tongyi
    module
    cloudflare_workersai
    module
    textgen
    module
    yandex
    module
    gpt4all
    module
    gradient_ai
    module
    stochasticai
    module
    octoai_endpoint
    View source on GitHub
    module
    rwkv
    module
    cerebriumai
    module
    openlm
    module
    huggingface_pipeline
    module
    watsonxllm
    module
    together
    module
    amazon_api_gateway
    module
    anthropic
    module
    xinference
    module
    baidu_qianfan_endpoint
    module
    vllm
    module
    beam
    module
    deepinfra
    module
    openllm
    module
    chatglm
    module
    arcee
    module
    ctransformers
    module
    aleph_alpha
    module
    clarifai
    module
    promptlayer_openai
    module
    base

    Determine if running within IPython or Jupyter.

    This module provides backward-compatible exports of core language model classes.

    These classes are re-exported for compatibility with older versions of LangChain and allow users to import language model interfaces from a stable path.