Skip to content

Commit 053157b

Browse files
committed
refactor(deprecation): Stop using get_event_loop_policy(), deprecated in Python >= 3.14
1 parent f04b54d commit 053157b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ and commits should be formatted using [Conventional Commits](https://www.convent
1010

1111
### Changed
1212

13-
- LLM: Increase default max_completion_tokens to 1536
13+
- LLM: Increase default max_completion_tokens to 1536 by @stronk7 ([8d7daba](https://github.com/moodlehq/wiki-rag/commit/8d7daba71bfc33e1a8f6a82b0bf10e1f7624057c))
14+
- Detail: Rename `env_template` to `dotenv.template` ([f04b54d](https://github.com/moodlehq/wiki-rag/commit/f04b54d5bceb80d6d8e21658032f16d67d775def))
15+
- Deprecation: Stop using `get_event_loop_policy()`, deprecated in Python >= 3.14
1416

1517
## [0.12.0] - 2025-11-03
1618

wiki_rag/search/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ def add_signal_handlers(run_loop) -> None:
293293
def main():
294294
"""Prepare the async loop for operation and graceful shutdown, then run()."""
295295
# Create the event loop, set it as current and add the signal handlers.
296-
loop = asyncio.get_event_loop_policy().new_event_loop()
297-
asyncio.get_event_loop_policy().set_event_loop(loop)
296+
loop = asyncio.new_event_loop()
297+
asyncio.set_event_loop(loop)
298298
add_signal_handlers(loop)
299299
exitcode = 0
300300
try:

0 commit comments

Comments
 (0)