Skip to content

Commit c810967

Browse files
committed
Fix auth header format
1 parent 8c44a7f commit c810967

File tree

1 file changed

+2
-4
lines changed
  • plugins/inworld/vision_agents/plugins/inworld

1 file changed

+2
-4
lines changed

plugins/inworld/vision_agents/plugins/inworld/tts.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,9 @@ async def stream_audio(
7272
"""
7373
url = f"{self.base_url}/tts/v1/voice:stream"
7474

75-
# Prepare Basic auth header
76-
# Inworld expects base64-encoded credentials
77-
credentials = base64.b64encode(f"{self.api_key}:".encode()).decode()
75+
credentials = f"Basic {self.api_key}"
7876
headers = {
79-
"Authorization": f"Basic {credentials}",
77+
"Authorization": credentials,
8078
"Content-Type": "application/json",
8179
}
8280

0 commit comments

Comments
 (0)