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

章节导航

基础包

  • 核心
  • Langchain
  • 文本分割器
  • 社区
  • 实验性

集成

  • AI21
  • Anthropic
  • AstraDB
  • AWS
  • Azure 动态会话
  • Cerebras
  • Chroma
  • Cohere
    • chains
    • chat_models
    • common
    • csv_agent
    • embeddings
    • llms
      • BaseCohere
      • Cohere
      • acompletion_with_retry
      • completion_with_retry
      • enforce_stop_tokens
    • rag_retrievers
    • react_multi_hop
    • rerank
    • sql_agent
  • Couchbase
  • Databricks
  • Elasticsearch
  • Exa
  • 烟花
  • Google 社区
  • Google GenAI
  • Google VertexAI
  • Groq
  • Huggingface
  • IBM
  • Milvus
  • MistralAI
  • Neo4J
  • Nomic
  • Nvidia AI 端点
  • Ollama
  • OpenAI
  • Pinecone
  • Postgres
  • Prompty
  • Qdrant
  • Redis
  • Sema4
  • Snowflake
  • Sqlserver
  • 标准测试
  • Together
  • 非结构化
  • Upstage
  • VoyageAI
  • Weaviate
  • XAI
  • LangChain Python API 参考
  • langchain-cohere: 0.3.4
  • llms

llms#

类

llms.BaseCohere

Cohere 模型的基类。

llms.Cohere

Cohere 大型语言模型。

函数

llms.acompletion_with_retry(llm, **kwargs)

使用 tenacity 重试完成调用。

llms.completion_with_retry(llm, **kwargs)

使用tenacity重试完成调用。

llms.enforce_stop_tokens(text, stop)

一旦出现任何停止词,立即切断文本。

© 版权所有 2023, LangChain Inc.

优云智算