Resolve merge conflicts in o3-pro response parsing fix
- Use new output_text field format for o3-pro responses - Update test expectations to use resolved model name o3-pro-2025-06-10 - Keep HTTP transport recorder and PII sanitization improvements - Preserve both bug fix and recent GPT-5 updates 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -663,9 +663,13 @@ class TestAutoModeWithRestrictions:
|
||||
model = ModelProviderRegistry.get_preferred_fallback_model(ToolModelCategory.FAST_RESPONSE)
|
||||
assert model == "o4-mini"
|
||||
|
||||
@patch.dict(os.environ, {"OPENAI_ALLOWED_MODELS": "mini", "GEMINI_API_KEY": "", "OPENAI_API_KEY": "test-key"})
|
||||
def test_fallback_with_shorthand_restrictions(self):
|
||||
def test_fallback_with_shorthand_restrictions(self, monkeypatch):
|
||||
"""Test fallback model selection with shorthand restrictions."""
|
||||
# Use monkeypatch to set environment variables with automatic cleanup
|
||||
monkeypatch.setenv("OPENAI_ALLOWED_MODELS", "mini")
|
||||
monkeypatch.setenv("GEMINI_API_KEY", "")
|
||||
monkeypatch.setenv("OPENAI_API_KEY", "test-key")
|
||||
|
||||
# Clear caches and reset registry
|
||||
import utils.model_restrictions
|
||||
from providers.registry import ModelProviderRegistry
|
||||
|
||||
Reference in New Issue
Block a user