We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5e66b1 commit d7d2478Copy full SHA for d7d2478
qstash/asyncio/client.py
@@ -1,3 +1,4 @@
1
+from os import environ
2
from typing import Literal, Optional, Union
3
4
from qstash.asyncio.chat import AsyncChatApi
@@ -27,7 +28,7 @@ def __init__(
27
28
self.http = AsyncHttpClient(
29
token,
30
retry,
- base_url,
31
+ base_url or environ.get("QSTASH_URL"),
32
)
33
self.message = AsyncMessageApi(self.http)
34
"""Message api."""
qstash/client.py
from typing import Optional, Union, Literal
from qstash.chat import ChatApi
@@ -28,7 +29,7 @@ def __init__(
self.http = HttpClient(
self.message = MessageApi(self.http)
35
0 commit comments