Fix: typo Bearer token (#8998)

### What problem does this PR solve?

Typo Bearer token. #8960

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Yongteng Lei
2025-07-23 18:10:51 +08:00
committed by GitHub
parent 7ebc1f0943
commit a2f73af1a4
2 changed files with 2 additions and 2 deletions

View File

@ -314,7 +314,7 @@ class OllamaTTS(Base):
self.base_url = base_url
self.headers = {"Content-Type": "application/json"}
if key and key != "x":
self.headers["Authorization"] = f"Bear {key}"
self.headers["Authorization"] = f"Bearer {key}"
def tts(self, text, voice="standard-voice"):
payload = {"model": self.model_name, "voice": voice, "input": text}