passing kwargs and forcing keyword-only arguments
This commit is contained in:
@@ -57,6 +57,7 @@ class CanonicalMetricsService(AIService):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
*,
|
||||||
aiohttp_session: aiohttp.ClientSession,
|
aiohttp_session: aiohttp.ClientSession,
|
||||||
audio_buffer_processor: AudioBufferProcessor,
|
audio_buffer_processor: AudioBufferProcessor,
|
||||||
call_id: str,
|
call_id: str,
|
||||||
@@ -65,8 +66,9 @@ class CanonicalMetricsService(AIService):
|
|||||||
api_url: str = "https://voiceapp.canonical.chat/api/v1",
|
api_url: str = "https://voiceapp.canonical.chat/api/v1",
|
||||||
assistant_speaks_first: bool = True,
|
assistant_speaks_first: bool = True,
|
||||||
output_dir: str = "recordings",
|
output_dir: str = "recordings",
|
||||||
|
**kwargs,
|
||||||
):
|
):
|
||||||
super().__init__()
|
super().__init__(**kwargs)
|
||||||
self._aiohttp_session = aiohttp_session
|
self._aiohttp_session = aiohttp_session
|
||||||
self._audio_buffer_processor = audio_buffer_processor
|
self._audio_buffer_processor = audio_buffer_processor
|
||||||
self._api_key = api_key
|
self._api_key = api_key
|
||||||
|
|||||||
Reference in New Issue
Block a user