Remove timestamp check from TestThoughtTranscription
This commit is contained in:
@@ -51,7 +51,7 @@ class GeminiLiveVertexLLMService(GeminiLiveLLMService):
|
|||||||
credentials_path: Optional[str] = None,
|
credentials_path: Optional[str] = None,
|
||||||
location: str,
|
location: str,
|
||||||
project_id: str,
|
project_id: str,
|
||||||
model="google/gemini-2.0-flash-live-preview-04-09",
|
model="google/gemini-live-2.5-flash-native-audio",
|
||||||
voice_id: str = "Charon",
|
voice_id: str = "Charon",
|
||||||
start_audio_paused: bool = False,
|
start_audio_paused: bool = False,
|
||||||
start_video_paused: bool = False,
|
start_video_paused: bool = False,
|
||||||
@@ -70,7 +70,7 @@ class GeminiLiveVertexLLMService(GeminiLiveLLMService):
|
|||||||
credentials_path: Path to the service account JSON file.
|
credentials_path: Path to the service account JSON file.
|
||||||
location: GCP region for Vertex AI endpoint (e.g., "us-east4").
|
location: GCP region for Vertex AI endpoint (e.g., "us-east4").
|
||||||
project_id: Google Cloud project ID.
|
project_id: Google Cloud project ID.
|
||||||
model: Model identifier to use. Defaults to "models/gemini-2.0-flash-live-preview-04-09".
|
model: Model identifier to use. Defaults to "models/gemini-live-2.5-flash-native-audio".
|
||||||
voice_id: TTS voice identifier. Defaults to "Charon".
|
voice_id: TTS voice identifier. Defaults to "Charon".
|
||||||
start_audio_paused: Whether to start with audio input paused. Defaults to False.
|
start_audio_paused: Whether to start with audio input paused. Defaults to False.
|
||||||
start_video_paused: Whether to start with video input paused. Defaults to False.
|
start_video_paused: Whether to start with video input paused. Defaults to False.
|
||||||
|
|||||||
@@ -730,9 +730,6 @@ class TestThoughtTranscription(unittest.IsolatedAsyncioTestCase):
|
|||||||
self.assertIsInstance(second_message, ThoughtTranscriptionMessage)
|
self.assertIsInstance(second_message, ThoughtTranscriptionMessage)
|
||||||
self.assertEqual(second_message.content, "Second consideration")
|
self.assertEqual(second_message.content, "Second consideration")
|
||||||
|
|
||||||
# Verify timestamps are different
|
|
||||||
self.assertNotEqual(first_message.timestamp, second_message.timestamp)
|
|
||||||
|
|
||||||
async def test_empty_thought_handling(self):
|
async def test_empty_thought_handling(self):
|
||||||
"""Test that empty thoughts are not emitted"""
|
"""Test that empty thoughts are not emitted"""
|
||||||
processor = AssistantTranscriptProcessor(process_thoughts=True)
|
processor = AssistantTranscriptProcessor(process_thoughts=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user