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
  • 文本分割器
  • Community
    • adapters
    • agent_toolkits
    • agents
    • cache
    • callbacks
    • chains
    • chat_loaders
    • chat_message_histories
    • chat_models
      • ChatAnyscale
      • AzureMLChatOnlineEndpoint
      • CustomOpenAIChatContentFormatter
      • LlamaChatContentFormatter
      • LlamaContentFormatter
      • MistralChatContentFormatter
      • ChatBaichuan
      • QianfanChatEndpoint
      • ChatPromptAdapter
      • ChatCloudflareWorkersAI
      • ChatCoze
      • ChatDappierAI
      • ChatDeepInfra
      • ChatDeepInfraException
      • ChatEdenAI
      • ChatEverlyAI
      • FakeListChatModel
      • FakeMessagesListChatModel
      • ChatFriendli
      • ChatGooglePalm
      • ChatGooglePalmError
      • GPTRouter
      • GPTRouterException
      • GPTRouterModel
      • HumanInputChatModel
      • ChatHunyuan
      • ChatJavelinAIGateway
      • ChatParams
      • JinaChat
      • ChatKinetica
      • KineticaSqlOutputParser
      • KineticaSqlResponse
      • KineticaUtil
      • ChatKonko
      • ChatLiteLLM
      • ChatLiteLLMException
      • ChatLiteLLMRouter
      • LlamaEdgeChatService
      • ChatLlamaCpp
      • ChatMaritalk
      • MaritalkHTTPError
      • MiniMaxChat
      • ChatMlflow
      • ChatMLflowAIGateway
      • ChatParams
      • ChatMLX
      • MoonshotChat
      • ChatClovaX
      • ChatOCIModelDeployment
      • ChatOCIModelDeploymentTGI
      • ChatOCIModelDeploymentVLLM
      • ChatOCIGenAI
      • CohereProvider
      • MetaProvider
      • Provider
      • ChatOctoAI
      • ChatOutlines
      • PaiEasChatEndpoint
      • ChatPerplexity
      • ChatPremAI
      • ChatPremAPIError
      • PromptLayerChatOpenAI
      • ChatReka
      • ChatSambaNovaCloud
      • ChatSambaStudio
      • ChatSnowflakeCortex
      • ChatSnowflakeCortexError
      • ChatSparkLLM
      • ChatNebula
      • ChatTongyi
      • VolcEngineMaasChat
      • ChatWriter
      • ChatYandexGPT
      • ChatYi
      • ChatYuan2
      • ChatZhipuAI
      • convert_messages_to_prompt_anthropic
      • aconnect_httpx_sse
      • convert_message_to_dict
      • convert_messages_to_prompt_mistral
      • get_cohere_chat_request
      • get_role
      • acompletion_with_retry
      • acompletion_with_retry_streaming
      • completion_with_retry
      • conditional_decorator
      • convert_dict_to_message
      • get_chat_request
      • get_role
      • achat_with_retry
      • chat_with_retry
      • acompletion_with_retry
      • completion_with_retry
      • get_ordered_generation_requests
      • acompletion_with_retry
      • acompletion_with_retry
      • get_llm_output
      • convert_messages_to_prompt_llama
      • aconnect_httpx_sse
      • connect_httpx_sse
      • acompletion_with_retry
      • chat_with_retry
      • create_prem_retry_decorator
      • convert_to_reka_messages
      • process_content
      • process_content_item
      • convert_dict_to_message
      • convert_message_to_dict
      • convert_dict_to_message
      • convert_message_chunk_to_message
      • convert_message_to_dict
      • convert_dict_to_message
      • acompletion_with_retry
      • completion_with_retry
      • aconnect_httpx_sse
      • acompletion_with_retry
      • aconnect_sse
      • connect_sse
      • ChatAnthropic
      • AzureChatOpenAI
      • BedrockChat
      • ChatCohere
      • ChatDatabricks
      • ErnieBotChat
      • ChatFireworks
      • GigaChat
      • ChatHuggingFace
      • ChatOllama
      • ChatOpenAI
      • SolarChat
      • ChatVertexAI
    • cross_encoders
    • docstore
    • document_compressors
    • document_loaders
    • document_transformers
    • embeddings
    • example_selectors
    • graph_vectorstores
    • graphs
    • indexes
    • llms
    • memory
    • output_parsers
    • query_constructors
    • retrievers
    • storage
    • tools
    • utilities
    • utils
    • vectorstores
  • 实验性

集成

  • AI21
  • Anthropic
  • AstraDB
  • AWS
  • Azure 动态会话
  • Cerebras
  • Chroma
  • Cohere
  • Couchbase
  • Databricks
  • Elasticsearch
  • Exa
  • Fireworks
  • 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-community: 0.3.14
  • chat_models
  • acompletion_with_retry

acompletion_with_retry#

async langchain_community.chat_models.openai.acompletion_with_retry(llm: ChatOpenAI, run_manager: AsyncCallbackManagerForLLMRun | None = None, **kwargs: Any) → Any[来源]#

使用tenacity重试异步完成调用。

Parameters:
  • llm (ChatOpenAI)

  • run_manager (AsyncCallbackManagerForLLMRun | None)

  • kwargs (Any)

Return type:

任何

On this page
  • acompletion_with_retry()

© 版权所有 2023, LangChain Inc.

优云智算