Skip to content

Commit e204918

Browse files
committed
Add api path to domain logic
1 parent 5bf7149 commit e204918

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/agoraio/core/domain.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ class Area(IntEnum):
3535
CN_EAST_REGION_DOMAIN_PREFIX = "api-cn-east-1"
3636
CN_NORTH_REGION_DOMAIN_PREFIX = "api-cn-north-1"
3737

38+
API_PATH_SUFFIX = "/api/conversational-ai-agent"
39+
3840

3941
class Domain:
4042
"""Domain contains the regional prefixes and domain suffixes for an area"""
@@ -190,7 +192,7 @@ def get_current_url(self) -> str:
190192
with self._lock:
191193
current_region = self._current_region_prefixes[0]
192194
current_domain = self._current_domain
193-
return f"https://{current_region}.{current_domain}"
195+
return f"https://{current_region}.{current_domain}{API_PATH_SUFFIX}"
194196

195197
def get_area(self) -> Area:
196198
"""Get the current area"""

0 commit comments

Comments
 (0)