mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 11:39:18 +00:00
community[minor]: rename ChatGPTRouter to GPTRouter (#14913)
**Description:**: Rename integration to GPTRouter **Tag maintainer:** @Gupta-Anubhav12 @samanyougarg @sirjan-ws-ext **Twitter handle:** [@SamanyouGarg](https://twitter.com/SamanyouGarg)
This commit is contained in:
committed by
GitHub
parent
992b04e475
commit
425e5e1791
@@ -77,7 +77,7 @@ def get_ordered_generation_requests(
|
||||
|
||||
|
||||
def _create_retry_decorator(
|
||||
llm: ChatGPTRouter,
|
||||
llm: GPTRouter,
|
||||
run_manager: Optional[
|
||||
Union[AsyncCallbackManagerForLLMRun, CallbackManagerForLLMRun]
|
||||
] = None,
|
||||
@@ -96,7 +96,7 @@ def _create_retry_decorator(
|
||||
|
||||
|
||||
def completion_with_retry(
|
||||
llm: ChatGPTRouter,
|
||||
llm: GPTRouter,
|
||||
models_priority_list: List[GPTRouterModel],
|
||||
run_manager: Optional[CallbackManagerForLLMRun] = None,
|
||||
**kwargs: Any,
|
||||
@@ -118,7 +118,7 @@ def completion_with_retry(
|
||||
|
||||
|
||||
async def acompletion_with_retry(
|
||||
llm: ChatGPTRouter,
|
||||
llm: GPTRouter,
|
||||
models_priority_list: List[GPTRouterModel],
|
||||
run_manager: Optional[AsyncCallbackManagerForLLMRun] = None,
|
||||
**kwargs: Any,
|
||||
@@ -140,7 +140,7 @@ async def acompletion_with_retry(
|
||||
return await _completion_with_retry(**kwargs)
|
||||
|
||||
|
||||
class ChatGPTRouter(BaseChatModel):
|
||||
class GPTRouter(BaseChatModel):
|
||||
"""GPTRouter by Writesonic Inc.
|
||||
|
||||
For more information, see https://gpt-router.writesonic.com/docs
|
||||
|
Reference in New Issue
Block a user