Further fixes to tests
Pass O3 simulation test when keys are not set, along with a notice
Updated docs on testing, simulation tests / contributing
Support for OpenAI o4-mini and o4-mini-high
This commit is contained in:
Fahad
2025-06-14 09:28:20 +04:00
parent c5f682c7b0
commit 746380eb7f
17 changed files with 324 additions and 53 deletions

View File

@@ -71,6 +71,15 @@ class O3ModelSelectionTest(BaseSimulatorTest):
self.logger.info(" Only OpenRouter configured - O3 models will be routed through OpenRouter")
return self._run_openrouter_o3_test()
# If neither OpenAI nor OpenRouter is configured, skip the test
if not has_openai and not has_openrouter:
self.logger.info(" ⚠️ Neither OpenAI nor OpenRouter API keys configured - skipping test")
self.logger.info(
" This test requires either OPENAI_API_KEY or OPENROUTER_API_KEY to be set in .env"
)
self.logger.info(" ✅ Test skipped (no API keys configured)")
return True # Return True to indicate test passed/skipped
# Original test for when OpenAI is configured
self.logger.info(" OpenAI API configured - expecting direct OpenAI API calls")