GameSentenceMiner 2.8.44__py3-none-any.whl → 2.8.46__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -119,10 +119,7 @@ class GeminiAI(AIManager):
119
119
  try:
120
120
  prompt = self._build_prompt(lines, sentence, current_line, game_title)
121
121
  self.logger.debug(f"Generated prompt:\n{prompt}")
122
- response = self.model.generate_content(
123
- prompt,
124
- temperature=0.5,
125
- )
122
+ response = self.model.generate_content(prompt)
126
123
  result = response.text.strip()
127
124
  self.logger.debug(f"Received response:\n{result}")
128
125
  return result
@@ -10,22 +10,20 @@ if is_windows():
10
10
 
11
11
  from GameSentenceMiner.configuration import logger
12
12
 
13
- class MyToastNotifier(ToastNotifier):
14
- def __init__(self):
15
- super().__init__()
13
+ if is_windows():
14
+ class MyToastNotifier(ToastNotifier):
15
+ def __init__(self):
16
+ super().__init__()
16
17
 
17
- def on_destroy(self, hwnd, msg, wparam, lparam):
18
- super().on_destroy(hwnd, msg, wparam, lparam)
19
- return 0
18
+ def on_destroy(self, hwnd, msg, wparam, lparam):
19
+ super().on_destroy(hwnd, msg, wparam, lparam)
20
+ return 0
20
21
 
21
- system = platform.system()
22
- if system == "Windows":
22
+ if is_windows():
23
23
  notifier = MyToastNotifier()
24
24
  else:
25
25
  notifier = notification
26
26
 
27
- windows = system == "Windows"
28
-
29
27
 
30
28
  def open_anki_card(note_id):
31
29
  url = "http://localhost:8765"
@@ -51,7 +49,7 @@ def open_anki_card(note_id):
51
49
 
52
50
 
53
51
  def send_notification(title, message, timeout):
54
- if windows:
52
+ if is_windows():
55
53
  notifier.show_toast(title, message, duration=timeout, threaded=True)
56
54
  else:
57
55
  notification.notify(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GameSentenceMiner
3
- Version: 2.8.44
3
+ Version: 2.8.46
4
4
  Summary: A tool for mining sentences from games. Update: Multi-Line Mining! Fixed!
5
5
  Author-email: Beangate <bpwhelan95@gmail.com>
6
6
  License: MIT License
@@ -7,7 +7,7 @@ GameSentenceMiner/ffmpeg.py,sha256=sf_Wz4ijFOYKRZI4qhRc32Y9E2zZuPscLv_VU8ZYCHU,1
7
7
  GameSentenceMiner/gametext.py,sha256=hcyZQ69B7xB5ZG85wLzM5au7ZPKxmeUXsmUD26oyk_0,5660
8
8
  GameSentenceMiner/gsm.py,sha256=dZt2Gnwqwj-i-yRpGJWBmCBRaBjEUCzi3L3P-gcVkfA,27266
9
9
  GameSentenceMiner/model.py,sha256=1lRyJFf_LND_4O16h8CWVqDfosLgr0ZS6ufBZ3qJHpY,5699
10
- GameSentenceMiner/notification.py,sha256=vNmtZw2K-2PnYI4inY5G9nLw8LZMjY97s5Y-E08OZqM,2878
10
+ GameSentenceMiner/notification.py,sha256=pXKoLfmRQLH55IQ5G6uxdMuczqX7D6l3ubVEY1e6hXg,2859
11
11
  GameSentenceMiner/obs.py,sha256=a-zLd7FrfI8fBiv5IfR-3pZYwqRJI_hUElzlZauaL40,14500
12
12
  GameSentenceMiner/obs_back.py,sha256=_N_UV7Nh5cyy3mnH5lOUOzhgZwHMACeFEuBo1Z-bNzg,10894
13
13
  GameSentenceMiner/package.py,sha256=YlS6QRMuVlm6mdXx0rlXv9_3erTGS21jaP3PNNWfAH0,1250
@@ -15,7 +15,7 @@ GameSentenceMiner/ss_selector.py,sha256=hS_p_7VljVkFDg_POsutLfXDv1hdF-NbVnQAW4X5
15
15
  GameSentenceMiner/text_log.py,sha256=MD7LB5D-v4G0Bnm3uGvZQ0aV38Fcj4E0vgq7mmyQ7_4,5157
16
16
  GameSentenceMiner/util.py,sha256=PrDNnxWiJZh1lGuwnp3DjWIlwbkVxweRTYWLtQk94Ao,9122
17
17
  GameSentenceMiner/ai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
- GameSentenceMiner/ai/ai_prompting.py,sha256=_uWvwOg2YROVZV3MOKlx2THvAmg07ScwVyvBCtPrUzs,9572
18
+ GameSentenceMiner/ai/ai_prompting.py,sha256=O1QBgCL6AkkDyhzxZuW8FPCKgUDfkl_ZlKGcEUfbRnk,9508
19
19
  GameSentenceMiner/communication/__init__.py,sha256=_jGn9PJxtOAOPtJ2rI-Qu9hEHVZVpIvWlxKvqk91_zI,638
20
20
  GameSentenceMiner/communication/send.py,sha256=X0MytGv5hY-uUvkfvdCqQA_ljZFmV6UkJ6in1TA1bUE,217
21
21
  GameSentenceMiner/communication/websocket.py,sha256=pTcUe_ZZRp9REdSU4qalhPmbT_1DKa7w18j6RfFLELA,3074
@@ -54,9 +54,9 @@ GameSentenceMiner/web/static/web-app-manifest-512x512.png,sha256=wyqgCWCrLEUxSRX
54
54
  GameSentenceMiner/web/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
55
  GameSentenceMiner/web/templates/text_replacements.html,sha256=tV5c8mCaWSt_vKuUpbdbLAzXZ3ATZeDvQ9PnnAfqY0M,8598
56
56
  GameSentenceMiner/web/templates/utility.html,sha256=P659ZU2j7tcbJ5xPO3p7E_SQpkp3CrrFtSvvXJNNuLI,16330
57
- gamesentenceminer-2.8.44.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
58
- gamesentenceminer-2.8.44.dist-info/METADATA,sha256=1MEsPlhCXRlSbYgaKoTTg9_EvknOUy-nIJIBr1NG-eg,7218
59
- gamesentenceminer-2.8.44.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
60
- gamesentenceminer-2.8.44.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
61
- gamesentenceminer-2.8.44.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
62
- gamesentenceminer-2.8.44.dist-info/RECORD,,
57
+ gamesentenceminer-2.8.46.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
58
+ gamesentenceminer-2.8.46.dist-info/METADATA,sha256=GdOQ39XqFUzkGREBUaVLBWiBpP6Oak-SOzh-ur_r0tA,7218
59
+ gamesentenceminer-2.8.46.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
60
+ gamesentenceminer-2.8.46.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
61
+ gamesentenceminer-2.8.46.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
62
+ gamesentenceminer-2.8.46.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.4.0)
2
+ Generator: setuptools (80.7.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5