completion_with_retry#
- langchain_community.llms.openai.completion_with_retry(llm: BaseOpenAI | OpenAIChat, run_manager: CallbackManagerForLLMRun | None = None, **kwargs: Any) Any [source]#
使用tenacity重试完成调用。
- Parameters:
llm (BaseOpenAI | OpenAIChat)
run_manager (CallbackManagerForLLMRun | None)
kwargs (Any)
- Return type:
任何