mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
test OAI
This commit is contained in:
parent
417a7d88e1
commit
1b7c8f6e8a
1 changed files with 29 additions and 0 deletions
|
|
@ -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"
|
||||
Loading…
Add table
Reference in a new issue