Commit Graph

472 Commits

Author SHA1 Message Date
misyaguziya
272ed8629f bugfix test case 2025-09-25 16:39:18 +09:00
misyaguziya
96ffd5509f テストコードな名前を変更 2025-09-25 12:43:23 +09:00
misyaguziya
93bdec7922 エンドポイントテストにおいて、401および404ステータスの処理を追加し、該当するエンドポイントに対するテスト結果を記録する機能を実装。 2025-09-25 12:37:13 +09:00
misyaguziya
89a027a8e0 エンドポイントテストのリファクタリングを実施し、動的にエンドポイントを取得するように変更。テスト結果の記録機能を追加し、削除系エンドポイントのテストを新たに実装。テスト結果のサマリー表示機能も追加。 2025-09-25 12:30:35 +09:00
misyaguziya
53f1b95843 エンドポイントテストの期待されるステータスを強化し、リクエスト処理の結果を改善。データ設定系のエンドポイントにおけるランダムデータの範囲を拡大し、出力メッセージをフラッシュするように修正。 2025-09-24 23:51:22 +09:00
misyaguziya
1b0e93b8f8 特定のエンドポイントに対するランダムアクセスのテストを追加し、出力メッセージを改善。テストの範囲を拡大し、無効化エンドポイントの処理を強化。 2025-09-24 21:12:08 +09:00
misyaguziya
c38e474385 エンドポイントテストを強化し、ON/OFF状態のテストメソッドをリファクタリング。データ設定系および実行系エンドポイントのテストを追加し、ランダムアクセスのテストを実装。 2025-09-24 01:06:11 +09:00
misyaguziya
95cf247e2e 処理の安定化のために待機時間を追加し、エンドポイントテストを強化。テストケースを整理し、実行系のエンドポイントテストを新たに追加。 2025-09-23 23:19:35 +09:00
misyaguziya
d9f1dabecb テストメソッドの出力メッセージを改善し、データ設定系のエンドポイントテストを追加 2025-09-23 20:51:09 +09:00
misyaguziya
a4656a5081 Controllerクラスの設定メソッドを修正し、重複した設定を防止する条件を追加。テストケースを更新し、ON/OFF状態のランダムアクセスと連続テストを強化。 2025-09-23 16:56:11 +09:00
misyaguziya
1689a45e3e Refactor test_endpoints.py: Enhance endpoint testing with structured tests for ON/OFF states, random access, and continuous testing. Introduce Color class for colored output and streamline endpoint handling logic. 2025-09-23 14:45:08 +09:00
misyaguziya
29ca5bfbe1 [WIP/TEST] Mainクラスの初期化ロジックを改善し、テスト用のエンドポイントを追加 2025-09-23 07:25:48 +09:00
misyaguziya
46584a0e3e Merge branch 'bugfix_overlay' into develop 2025-09-19 22:50:10 +09:00
misyaguziya
c171588ba9 [bugfix] Chat機能より改行を含む文章を送信した場合に、マルチラインのoverlayの表示に失敗する問題を修正 2025-09-19 22:49:48 +09:00
misyaguziya
9d94fd6a5e [Update] Refactor compute type management: unify device list retrieval and remove deprecated methods 2025-09-19 18:09:39 +09:00
misyaguziya
6501e0c1d7 [Update] 修正: SELECTED_TARGET_LANGUAGESの初期化ロジックを改善し、最初の言語のみを有効化 2025-09-19 11:06:23 +09:00
misyaguziya
7274c514a7 [Update] トランスリテレーション処理を有効化する条件を追加 2025-09-17 21:40:28 +09:00
misyaguziya
396d5d7d88 メッセージのトランスリテレーション処理を改善し、日本語の条件を簡素化 2025-09-17 17:52:12 +09:00
misyaguziya
c9dd352565 メッセージの変換処理を改善し、日本語のトランスリテレーションの条件を整理 2025-09-17 17:05:59 +09:00
misyaguziya
5ed0d555b9 Transliteration変数の名称を変更し、メッセージ処理の一貫性を向上 2025-09-17 15:28:45 +09:00
misyaguziya
4617954928 [Add] Implement Transliterator class and katakana to Hepburn conversion function 2025-09-17 14:09:36 +09:00
misyaguziya
3d34b50793 ConfigクラスにSELECTED_TAB_TARGET_LANGUAGES_NO_LISTプロパティを追加し、メッセージの変換処理を改善 2025-09-17 12:35:14 +09:00
misyaguziya
fad01f6f90 [Change] ファイル名を変更 2025-09-17 11:26:44 +09:00
misyaguziya
5f0f918642 [Update] Rename and add methods for CTranslate2 compute type management in Controller 2025-09-17 10:52:56 +09:00
misyaguziya
245855d0ca [Update] Add compute type management for CTranslate2 and Whisper models 2025-09-17 10:35:34 +09:00
misyaguziya
224eaf3cef [Add] translation_gemini: Integrate Gemini translation model and authentication; [Update] controller: Implement methods for managing Gemini models and auth keys; [Update] mainloop: Add routes for Gemini model and auth key management; [Update] translation: Enhance Translator class for Gemini API support; [Update] translation_languages: Add Gemini language mappings 2025-09-15 17:42:09 +09:00
misyaguziya
d3c206fb26 [Add] Implement Transliterator class for kanji and okurigana analysis; update requirements and spec files 2025-09-15 05:33:30 +09:00
misyaguziya
0d121ecaad [Update] Enhance kanji and okurigana processing in Transliterator class 2025-09-15 05:22:57 +09:00
misyaguziya
2efedfb572 [Add] Implement transliterator and katakana to Hepburn conversion functions 2025-09-15 05:00:24 +09:00
misyaguziya
5a9a13146c [Update] Refactor transliteration function to accept parameters for hiragana and romaji conversion 2025-09-12 16:06:12 +09:00
misyaguziya
e3555d204e [Update] requirements: Add langchain-google-genai to dependencies; [Add] translation_gemini: Implement GeminiClient for translation functionality 2025-09-12 14:40:35 +09:00
misyaguziya
4e53584cff [Update] mainloop: Improve receiver loop to handle empty input and add stop message
[Update] osc: Refactor OSC query service initialization to run in a separate thread
2025-09-11 23:11:39 +09:00
misyaguziya
7bed19c81f [Update] controller: Change Plamo model list to selectable models 2025-09-11 18:02:12 +09:00
Sakamoto Shiina
684d9c3283 [Update] Version 3.2.1 -> 3.2.2 2025-09-11 17:00:15 +09:00
misyaguziya
bc269bc1fb [Update] translation: Integrate Plamo API support with model selection and authentication features 2025-09-11 14:15:26 +09:00
misyaguziya
f5ebcd7bd8 [Update] translation: Add Plamo API support with authentication and translation functionality 2025-09-10 17:52:42 +09:00
misyaguziya
83a61e2e87 [Update] translation: Add support for new translation models and improve weight handling 2025-09-08 16:27:47 +09:00
misyaguziya
6fb7ecbc52 [Update] translation_utils.py: Refactor weight handling and improve error logging
add translate model
- jncraton/m2m100_418M-ct2-int8
- jncraton/m2m100_1.2B-ct2-int8
- OpenNMT/nllb-200-3.3B-ct2-int8
- OpenNMT/nllb-200-distilled-1.3B-ct2-int8
2025-09-07 23:59:20 +09:00
Sakamoto Shiina
e6bd0e32ed [bugfix] controller.py: Fix the bug, type error. that was unable to store the data correctly. 2025-08-26 17:20:29 +09:00
misyaguziya
b1fabc37a4 [Update] Add comments to clarify property access levels in Config class 2025-08-06 21:36:51 +09:00
misyaguziya
d12c157b66 [Update] Refactor message formatting and add validation for message structure 2025-08-06 20:33:36 +09:00
misyaguziya
c2f40d2f5d [Update] version 3.2.0 -> 3.2.1 2025-06-24 21:23:18 +09:00
google-labs-jules[bot]
172617a523 Fix: Enhance logging for OSError and prevent AttributeError
This commit addresses two potential issues related to issue #50:

1.  Enhanced `OSError` Logging in `utils.py`:
    The `printResponse` function in `src-python/utils.py` has been modified
    to include more robust error handling around the `json.dumps()` call.
    If an `OSError` (such as `[Errno 22] Invalid argument`) occurs during
    JSON serialization, the function will now:
    - Log the full traceback of the OSError.
    - Log the specific problematic response dictionary that caused the error.
    - Print a fallback JSON error message to stdout.
    This change aims to help diagnose the root cause of the `OSError`
    reported by you by capturing the exact data that triggers it.

2.  Prevent `AttributeError` for `.close()` calls:
    Added checks in `src-python/models/osc/osc.py` and
    `src-python/models/websocket/websocket_server.py` to ensure that
    objects are not `None` before their `.close()` or `.cancel()` methods
    are called. This specifically addresses:
    - `self.browser.zc.close()` and `self.browser.browser.cancel()` in `osc.py`.
    - `self._loop.close()` in `websocket_server.py`.
    These changes prevent potential `AttributeError: 'NoneType' object
    has no attribute 'close'` errors if these objects are not fully
    initialized before cleanup.
2025-06-18 14:47:17 +00:00
misyaguziya
5813ede67b [Refactor] Simplify conditional checks for transcript retrieval in Model class 2025-06-17 15:06:30 +09:00
misyaguziya
c1157d30cf [Refactor] Move WebSocket message sending and logging to the correct position in the flow 2025-06-17 15:05:24 +09:00
misyaguziya
a3384ff235 Merge branch 'bugfix_overlay' into develop 2025-06-16 18:59:49 +09:00
misyaguziya
c12f51f802 [bugfix] remove print root path 2025-06-16 18:59:37 +09:00
misyaguziya
f86f3fb4f0 Merge branch 'bugfix_overlay' into develop 2025-06-16 11:50:33 +09:00
misyaguziya
e25cd62891 [Refactor] Improve overlay image creation logic for small logs and translations 2025-06-16 11:29:54 +09:00
misyaguziya
ab5c6b7bb5 [Refactor] Improve overlay image creation logic for large logs and translations 2025-06-16 06:45:13 +09:00