LLMContext: fix create_audio_message
This commit is contained in:
1
changelog/3435.fixed.md
Normal file
1
changelog/3435.fixed.md
Normal file
@@ -0,0 +1 @@
|
||||
- Fixed `LLMContext.create_audio_message()` by correcting an internal helper that was incorrectly declared async while being run in `asyncio.to_thread()`.
|
||||
@@ -206,7 +206,7 @@ class LLMContext:
|
||||
"""
|
||||
content = [{"type": "text", "text": text}]
|
||||
|
||||
async def encode_audio():
|
||||
def encode_audio():
|
||||
sample_rate = audio_frames[0].sample_rate
|
||||
num_channels = audio_frames[0].num_channels
|
||||
|
||||
|
||||
Reference in New Issue
Block a user