Merge branch 'master' into NLPCRAFT-376
diff --git a/nlpcraft-examples/weather/src/main/java/org/apache/nlpcraft/examples/weather/WeatherModel.java b/nlpcraft-examples/weather/src/main/java/org/apache/nlpcraft/examples/weather/WeatherModel.java
index b8abb09..f6cf737 100644
--- a/nlpcraft-examples/weather/src/main/java/org/apache/nlpcraft/examples/weather/WeatherModel.java
+++ b/nlpcraft-examples/weather/src/main/java/org/apache/nlpcraft/examples/weather/WeatherModel.java
@@ -49,7 +49,7 @@
* intent matching logic. It uses OpenWeather API weather provider REST service for the actual
* weather information (https://openweathermap.org/api/one-call-api).
* <p>
- * NOTE: you must provide OpenWorldMap API key in 'OWM_API_KEY' system property.
+ * NOTE: you must provide OpenWeather API key in 'OWM_API_KEY' system property.
* See https://openweathermap.org/api for more information.
* <p>
* See 'README.md' file in the same folder for running and testing instructions.
@@ -78,7 +78,7 @@
private static final Set<String> LOCAL_WORDS = new HashSet<>(Arrays.asList("my", "local", "hometown"));
/**
- * Extracts geo location (city) from given solver context that is suitable for Dark Sky API weather service.
+ * Extracts geolocation (city) from given solver context that is suitable for Dark Sky API weather service.
*
* @param ctx Intent solver context.
* @param geoTokOpt Optional geo token.
diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/utils/keycdn/GeoManager.java b/nlpcraft/src/main/scala/org/apache/nlpcraft/utils/keycdn/GeoManager.java
index db76f1c..c539782 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/utils/keycdn/GeoManager.java
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/utils/keycdn/GeoManager.java
@@ -138,7 +138,7 @@
*/
private static String getExternalIp() throws IOException {
try (BufferedReader in =
- new BufferedReader(new InputStreamReader(new URL("http://checkip.amazonaws.com").openStream()))) {
+ new BufferedReader(new InputStreamReader(new URL("https://checkip.amazonaws.com").openStream()))) {
return in.readLine();
}
}