-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uninstall library
APIの追加
#692
Conversation
def uninstall_library(self, library_id: str): | ||
installed_libraries = self.installed_libraries() | ||
if library_id not in installed_libraries.keys(): | ||
raise HTTPException(status_code=404, detail="指定された音声ライブラリはインストールされていません。") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
最近ログやエラーはそこそこ詳細に書いておくと利便性が上がることに気づきました。
音声ライブラリーのIDも返してあげるとかどうでしょう。(あまりこだわりはないです!)
raise HTTPException(status_code=404, detail="指定された音声ライブラリはインストールされていません。") | |
raise HTTPException(status_code=404, detail=f"指定された音声ライブラリ ${library_id} はインストールされていません。") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確かにそのほうがいいと思います!
ちょっと他の音声ライブラリ操作関連でも同じような修正をするべきだと思うので、そのためのPRを別で作る方向で解決しようかなと思います...!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
たしかに、了解です!
4aac1eb
to
17e70f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
スピードを優先してマージをサクサクやっていこうかなと思います!
@takana-v さんも、もしよかったら後からでも良いのでレビューをいただけると心強いです!
内容
題の通り
関連 Issue
VOICEVOX/voicevox_project#21
その他
話者関連情報(
speaker_info
)の削除とかが不足していますが、そもそもinstall_library
APIにおいてそれが考慮されていないので、一旦無視でいいかなと思いました。