diff --git a/src/main/askai/core/component/geo_location.py b/src/main/askai/core/component/geo_location.py index 137992e5..f5092c1f 100644 --- a/src/main/askai/core/component/geo_location.py +++ b/src/main/askai/core/component/geo_location.py @@ -37,9 +37,9 @@ class GeoLocation(metaclass=Singleton): EMPTY_JSON_RESP: str = dedent( """ { - "status": "failure", "country": "", "countryCode": "", "region": "", "regionName": "", - "city": "", "zip": "", "lat": 0.0, "lon": 0.0, "timezone": "UTC", - "isp": "", "org": "", "as": "", "query": "" + "status": "failure", "country": "London", "countryCode": "UK", "region": "Greater London", + "regionName": "England", "city": "Greenwich", "zip": "", "lat": 51.4826, "lon": 0.0077, + "timezone": "UTC", "isp": "", "org": "", "as": "", "query": "" } """ ).strip() diff --git a/src/main/askai/core/support/shared_instances.py b/src/main/askai/core/support/shared_instances.py index 74d8b680..fdceea6f 100644 --- a/src/main/askai/core/support/shared_instances.py +++ b/src/main/askai/core/support/shared_instances.py @@ -136,9 +136,12 @@ def app_info(self) -> str: OS: {prompt.os_type}/{prompt.shell} {'-' * 80} Microphone: %CYAN%{device_info or '%RED%Undetected'} %GREEN% - Debugging: {'' if configs.is_debug else '%RED%'} %GREEN% Speaking: {', tempo: ' + speak_info if configs.is_speak else '%RED%'} %GREEN% - Caching: {', TTL: ' + str(configs.ttl) if configs.is_cache else '%RED%'} %GREEN% + {'.' * 80} + Location: {', ' + geo_location.location if configs.ip_api_enabled else '%RED%'} %GREEN% + History: {'' if configs.is_keep_context else '%RED%'} %GREEN% + Debug: {'' if configs.is_debug else '%RED%'} %GREEN% + Cache: {', TTL: ' + str(configs.ttl) if configs.is_cache else '%RED%'} %GREEN% {'=' * 80}%NC% """