mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-11 12:17:45 +02:00
[shawn] chore: drop unused _resolve_model from outputs/outputs.py
Removed: - _resolve_model (L36, 2 lines) - MODEL_MAP module-level dict (L29) — only consumed by the deleted function, so it became orphaned after the cut. Verified zero callers via: grep -rn '_resolve_model' backend electron frontend/src grep -rn 'MODEL_MAP' backend electron frontend/src The only other MODEL_MAP match (browser_agent.py) is a distinct module-level dict, not this one. 802 tests pass.
This commit is contained in:
@@ -26,16 +26,6 @@ from backend.apps.settings.settings import load_settings
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
MODEL_MAP = {
|
||||
"sonnet": "claude-sonnet-4-20250514",
|
||||
"opus": "claude-opus-4-20250514",
|
||||
"haiku": "claude-haiku-4-5-20251001",
|
||||
}
|
||||
|
||||
|
||||
def _resolve_model(short_name: str) -> str:
|
||||
return MODEL_MAP.get(short_name, short_name)
|
||||
|
||||
|
||||
def _get_anthropic_client(api_model: str | None = None):
|
||||
"""Create an AsyncAnthropic client using the API key from app settings.
|
||||
|
||||
Reference in New Issue
Block a user