This commit is contained in:
Ishaan Jaffer 2026-02-03 18:14:15 -08:00
parent 417a7d88e1
commit 1b7c8f6e8a

View file

@ -0,0 +1,29 @@
"""
OpenAI Realtime API E2E Tests (using base class)
Tests OpenAI's Realtime API through LiteLLM's realtime interface.
Uses the base test class to ensure consistent behavior across providers.
"""
import os
import sys
import pytest
sys.path.insert(0, os.path.abspath("../.."))
from tests.llm_translation.base_realtime_tests import BaseRealtimeTest
class TestOpenAIRealtime(BaseRealtimeTest):
"""
E2E tests for OpenAI Realtime API using base test class.
"""
def get_model(self) -> str:
return "gpt-4o-realtime-preview-2024-10-01"
def get_api_key_env_var(self) -> str:
return "OPENAI_API_KEY"
def get_initial_event_type(self) -> str:
return "session.created"