AudioModelTests Class — langchain Architecture
Architecture documentation for the AudioModelTests class in test_base_standard.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD ee686260_4bf1_8ea2_b412_916a8841649c["AudioModelTests"] 971e928f_9c9b_ce7a_b93d_e762f2f5aa54["ChatModelIntegrationTests"] ee686260_4bf1_8ea2_b412_916a8841649c -->|extends| 971e928f_9c9b_ce7a_b93d_e762f2f5aa54 1a386024_1196_1786_41ed_59e02f86902d["test_base_standard.py"] ee686260_4bf1_8ea2_b412_916a8841649c -->|defined in| 1a386024_1196_1786_41ed_59e02f86902d ae30f34c_0edd_d57d_fdd6_e29a77ac8eae["chat_model_class()"] ee686260_4bf1_8ea2_b412_916a8841649c -->|method| ae30f34c_0edd_d57d_fdd6_e29a77ac8eae 1c7ac2c1_be8e_ab8d_3aea_acb5d5f445f5["chat_model_params()"] ee686260_4bf1_8ea2_b412_916a8841649c -->|method| 1c7ac2c1_be8e_ab8d_3aea_acb5d5f445f5 60136a55_7a94_f99c_38aa_c6ca2030b01b["supports_audio_inputs()"] ee686260_4bf1_8ea2_b412_916a8841649c -->|method| 60136a55_7a94_f99c_38aa_c6ca2030b01b
Relationship Graph
Source Code
libs/partners/openai/tests/integration_tests/chat_models/test_base_standard.py lines 137–155
class AudioModelTests(ChatModelIntegrationTests):
@property
def chat_model_class(self) -> type[ChatOpenAI]:
return ChatOpenAI
@property
def chat_model_params(self) -> dict:
return {
"model": "gpt-4o-audio-preview",
"temperature": 0,
"model_kwargs": {
"modalities": ["text", "audio"],
"audio": {"voice": "alloy", "format": "wav"},
},
}
@property
def supports_audio_inputs(self) -> bool:
return True
Extends
Source
Frequently Asked Questions
What is the AudioModelTests class?
AudioModelTests is a class in the langchain codebase, defined in libs/partners/openai/tests/integration_tests/chat_models/test_base_standard.py.
Where is AudioModelTests defined?
AudioModelTests is defined in libs/partners/openai/tests/integration_tests/chat_models/test_base_standard.py at line 137.
What does AudioModelTests extend?
AudioModelTests extends ChatModelIntegrationTests.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free