Strip trailing slashes from endpoint

Trailing slashes will cause the download to fail immediately.
This commit is contained in:
JayZed 2024-03-10 12:42:12 -04:00
parent 532537e03c
commit fcddb8f5cd
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ class WhisperAIProvider(Provider):
if not ffmpeg_path:
raise ConfigurationError("ffmpeg path must be provided")
self.endpoint = endpoint
self.endpoint = endpoint.rstrip("/")
self.response = int(response)
self.timeout = int(timeout)
self.session = None