Skip to content

Commit 7576189

Browse files
authored
2.1.0 (#32)
2 parents 88eae05 + 1f21bb6 commit 7576189

23 files changed

+113
-53
lines changed

.github/workflows/skill_tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ jobs:
1515
with:
1616
test_padacioso: True
1717
test_padatious: True
18+
ovos_versions: "[]"
1819
skill_resource_tests:
1920
uses: neongeckocom/.github/.github/workflows/skill_test_resources.yml@master
2021
skill_install_tests:
2122
uses: neongeckocom/.github/.github/workflows/skill_test_installation.yml@master
2223
with:
23-
test_osm: false
24+
test_osm: false

CHANGELOG.md

Lines changed: 6 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,20 @@
11
# Changelog
22

3-
## [1.0.2a7](https://github.com/NeonGeckoCom/skill-fallback_llm/tree/1.0.2a7) (2025-03-20)
3+
## [2.0.1a2](https://github.com/NeonGeckoCom/skill-fallback_llm/tree/2.0.1a2) (2025-07-29)
44

5-
[Full Changelog](https://github.com/NeonGeckoCom/skill-fallback_llm/compare/1.0.2a6...1.0.2a7)
5+
[Full Changelog](https://github.com/NeonGeckoCom/skill-fallback_llm/compare/2.0.1a1...2.0.1a2)
66

77
**Merged pull requests:**
88

9-
- Update dependencies [\#27](https://github.com/NeonGeckoCom/skill-fallback_llm/pull/27) ([NeonDaniel](https://github.com/NeonDaniel))
9+
- Fix response routing for Node and Iris applications [\#30](https://github.com/NeonGeckoCom/skill-fallback_llm/pull/30) ([NeonDaniel](https://github.com/NeonDaniel))
1010

11-
## [1.0.2a6](https://github.com/NeonGeckoCom/skill-fallback_llm/tree/1.0.2a6) (2025-03-11)
11+
## [2.0.1a1](https://github.com/NeonGeckoCom/skill-fallback_llm/tree/2.0.1a1) (2025-07-23)
1212

13-
[Full Changelog](https://github.com/NeonGeckoCom/skill-fallback_llm/compare/1.0.2a5...1.0.2a6)
13+
[Full Changelog](https://github.com/NeonGeckoCom/skill-fallback_llm/compare/2.0.0...2.0.1a1)
1414

1515
**Merged pull requests:**
1616

17-
- Update automation, gitignore, and license notices [\#26](https://github.com/NeonGeckoCom/skill-fallback_llm/pull/26) ([NeonDaniel](https://github.com/NeonDaniel))
18-
19-
## [1.0.2a5](https://github.com/NeonGeckoCom/skill-fallback_llm/tree/1.0.2a5) (2024-09-17)
20-
21-
[Full Changelog](https://github.com/NeonGeckoCom/skill-fallback_llm/compare/1.0.2a4...1.0.2a5)
22-
23-
**Merged pull requests:**
24-
25-
- Update OVOS depdendencies for 0.x compat [\#25](https://github.com/NeonGeckoCom/skill-fallback_llm/pull/25) ([NeonDaniel](https://github.com/NeonDaniel))
26-
27-
## [1.0.2a4](https://github.com/NeonGeckoCom/skill-fallback_llm/tree/1.0.2a4) (2024-07-18)
28-
29-
[Full Changelog](https://github.com/NeonGeckoCom/skill-fallback_llm/compare/1.0.2a3...1.0.2a4)
30-
31-
**Merged pull requests:**
32-
33-
- Update fallback\_llm intents [\#18](https://github.com/NeonGeckoCom/skill-fallback_llm/pull/18) ([NeonClary](https://github.com/NeonClary))
34-
35-
## [1.0.2a3](https://github.com/NeonGeckoCom/skill-fallback_llm/tree/1.0.2a3) (2024-03-26)
36-
37-
[Full Changelog](https://github.com/NeonGeckoCom/skill-fallback_llm/compare/1.0.2a2...1.0.2a3)
38-
39-
**Merged pull requests:**
40-
41-
- Extend FallbackSkill from ovos-workshop and use Hana endpoints [\#21](https://github.com/NeonGeckoCom/skill-fallback_llm/pull/21) ([NeonDaniel](https://github.com/NeonDaniel))
42-
43-
## [1.0.2a2](https://github.com/NeonGeckoCom/skill-fallback_llm/tree/1.0.2a2) (2024-02-05)
44-
45-
[Full Changelog](https://github.com/NeonGeckoCom/skill-fallback_llm/compare/1.0.2a1...1.0.2a2)
46-
47-
**Merged pull requests:**
48-
49-
- Support ovos-utils 0.1 [\#20](https://github.com/NeonGeckoCom/skill-fallback_llm/pull/20) ([NeonDaniel](https://github.com/NeonDaniel))
50-
51-
## [1.0.2a1](https://github.com/NeonGeckoCom/skill-fallback_llm/tree/1.0.2a1) (2024-01-03)
52-
53-
[Full Changelog](https://github.com/NeonGeckoCom/skill-fallback_llm/compare/1.0.1...1.0.2a1)
54-
55-
**Merged pull requests:**
56-
57-
- Refactor for better compat. with OVOS dependencies [\#19](https://github.com/NeonGeckoCom/skill-fallback_llm/pull/19) ([NeonDaniel](https://github.com/NeonDaniel))
17+
- Ukraininan translation [\#29](https://github.com/NeonGeckoCom/skill-fallback_llm/pull/29) ([NeonDmitry](https://github.com/NeonDmitry))
5818

5919

6020

__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def fallback_llm(self, message):
8989
def _threaded_get_response(utt, usr):
9090
answer = self._get_llm_response(utt, usr, self._default_llm)
9191
if not answer:
92-
LOG.info(f"No fallback response")
92+
LOG.info("No fallback response")
9393
return
9494
self.speak(answer)
9595

@@ -207,7 +207,7 @@ def converse(self, message=None):
207207
return False
208208
last_message = self.chatting[user][0]
209209
if time() - last_message > self.chat_timeout_seconds:
210-
LOG.info(f"Chat session timed out")
210+
LOG.info("Chat session timed out")
211211
self._stop_chatting(message)
212212
return False
213213
# Take final utterance as one that wasn't normalized
@@ -216,11 +216,12 @@ def converse(self, message=None):
216216
# TODO: Imperfect check for "stop" or "exit"
217217
self._stop_chatting(message)
218218
return True
219-
Thread(target=self._threaded_converse, args=(utterance, user),
219+
Thread(target=self._threaded_converse, args=(utterance, user, message),
220220
daemon=True).start()
221221
return True
222222

223-
def _threaded_converse(self, utterance, user):
223+
def _threaded_converse(self, utterance: str, user: str, message: Message):
224+
# `message` required to resolve response routing in `speak`
224225
try:
225226
llm = self.chatting[user][1]
226227
resp = self._get_llm_response(utterance, user, llm)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Приємно було спілкуватися з вами, до побачення.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Гаразд, я не буду надсилати запити до LLM.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Гаразд, я буду звертатися до LLM, коли не матиму кращої відповіді
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
У мене немає історії чату, щоб надіслати вам.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Вибачте, Chat GPT зараз недоступний.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Вибачте, будь ласка, вкажіть вашу електронну адресу і спробуйте знову.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Спілкування з LLM. Скажіть "до побачення", щоб завершити.

0 commit comments

Comments
 (0)