langchain_community.chat_models.gpt_router
.acompletion_with_retryΒΆ
- async langchain_community.chat_models.gpt_router.acompletion_with_retry(llm: GPTRouter, models_priority_list: List[GPTRouterModel], run_manager: Optional[AsyncCallbackManagerForLLMRun] = None, **kwargs: Any) Union[GenerationResponse, AsyncGenerator[ChunkedGenerationResponse, None]] [source]ΒΆ
Use tenacity to retry the async completion call.
- Parameters
llm (GPTRouter) β
models_priority_list (List[GPTRouterModel]) β
run_manager (Optional[AsyncCallbackManagerForLLMRun]) β
kwargs (Any) β
- Return type
Union[GenerationResponse, AsyncGenerator[ChunkedGenerationResponse, None]]