We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bf7149 commit e204918Copy full SHA for e204918
1 file changed
src/agoraio/core/domain.py
@@ -35,6 +35,8 @@ class Area(IntEnum):
35
CN_EAST_REGION_DOMAIN_PREFIX = "api-cn-east-1"
36
CN_NORTH_REGION_DOMAIN_PREFIX = "api-cn-north-1"
37
38
+API_PATH_SUFFIX = "/api/conversational-ai-agent"
39
+
40
41
class Domain:
42
"""Domain contains the regional prefixes and domain suffixes for an area"""
@@ -190,7 +192,7 @@ def get_current_url(self) -> str:
190
192
with self._lock:
191
193
current_region = self._current_region_prefixes[0]
194
current_domain = self._current_domain
- return f"https://{current_region}.{current_domain}"
195
+ return f"https://{current_region}.{current_domain}{API_PATH_SUFFIX}"
196
197
def get_area(self) -> Area:
198
"""Get the current area"""
0 commit comments