mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-11 16:01:33 +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
@@ -16,7 +16,7 @@
|
||||
"id": "bf733a38-db84-4363-89e2-de6735c37230",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# ChatGPTRouter\n",
|
||||
"# GPTRouter\n",
|
||||
"\n",
|
||||
"[GPTRouter](https://github.com/Writesonic/GPTRouter) is an open source LLM API Gateway that offers a universal API for 30+ LLMs, vision, and image models, with smart fallbacks based on uptime and latency, automatic retries, and streaming.\n",
|
||||
"\n",
|
||||
@@ -71,7 +71,7 @@
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from langchain.schema import HumanMessage\n",
|
||||
"from langchain_community.chat_models import ChatGPTRouter\n",
|
||||
"from langchain_community.chat_models import GPTRouter\n",
|
||||
"from langchain_community.chat_models.gpt_router import GPTRouterModel"
|
||||
]
|
||||
},
|
||||
@@ -94,7 +94,7 @@
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"chat = ChatGPTRouter(models_priority_list=[anthropic_claude])"
|
||||
"chat = GPTRouter(models_priority_list=[anthropic_claude])"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -131,7 +131,7 @@
|
||||
"id": "c361ab1e-8c0c-4206-9e3c-9d1424a12b9c",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## `ChatGPTRouter` also supports async and streaming functionality:"
|
||||
"## `GPTRouter` also supports async and streaming functionality:"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -197,7 +197,7 @@
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"chat = ChatGPTRouter(\n",
|
||||
"chat = GPTRouter(\n",
|
||||
" models_priority_list=[anthropic_claude],\n",
|
||||
" streaming=True,\n",
|
||||
" verbose=True,\n",
|
||||
|
Reference in New Issue
Block a user