@@ -63,7 +63,7 @@ def __init__(
6363
6464 Args:
6565 api_base: Optional[str], a full URL for the DERISK API.
66- Defaults to the `http://localhost:5670 /api/v2`.
66+ Defaults to the `http://localhost:7777 /api/v2`.
6767 api_key: Optional[str], The derisk api key to use for authentication.
6868 Defaults to None.
6969 timeout: Optional[httpx._types.TimeoutTypes]: The timeout to use.
@@ -79,14 +79,14 @@ def __init__(
7979
8080 from derisk_client import Client
8181
82- DERISK_API_BASE = "http://localhost:5670 /api/v2"
82+ DERISK_API_BASE = "http://localhost:7777 /api/v2"
8383 DERISK_API_KEY = "derisk"
8484 client = Client(api_base=DERISK_API_BASE, api_key=DERISK_API_KEY)
8585 client.chat(model="chatgpt_proxyllm", messages="Hello?")
8686 """
8787 if not api_base :
8888 api_base = os .getenv (
89- "DERISK_API_BASE" , f"http://localhost:5670 /{ CLIENT_API_PATH } /{ version } "
89+ "DERISK_API_BASE" , f"http://localhost:7777 /{ CLIENT_API_PATH } /{ version } "
9090 )
9191 if not api_key :
9292 api_key = os .getenv ("DERISK_API_KEY" )
@@ -157,7 +157,7 @@ async def chat(
157157
158158 from derisk_client import Client
159159
160- DERISK_API_BASE = "http://localhost:5670 /api/v2"
160+ DERISK_API_BASE = "http://localhost:7777 /api/v2"
161161 DERISK_API_KEY = "derisk"
162162 client = Client(api_base=DERISK_API_BASE, api_key=DERISK_API_KEY)
163163 res = await client.chat(model="chatgpt_proxyllm", messages="Hello?")
@@ -233,7 +233,7 @@ async def chat_stream(
233233
234234 from derisk_client import Client
235235
236- DERISK_API_BASE = "http://localhost:5670 /api/v2"
236+ DERISK_API_BASE = "http://localhost:7777 /api/v2"
237237 DERISK_API_KEY = "derisk"
238238 client = Client(api_base=DERISK_API_BASE, api_key=DERISK_API_KEY)
239239 res = await client.chat_stream(model="chatgpt_proxyllm", messages="Hello?")
0 commit comments