Files
wehub-resource-sync 97e91a83f3
Ruff / Ruff (push) Waiting to run
Test / Core Tests (push) Waiting to run
Test / Offline Coverage Tests (Python 3.10) (push) Waiting to run
Test / Offline Coverage Tests (Python 3.11) (push) Waiting to run
Test / Offline Coverage Tests (Python 3.12) (push) Waiting to run
Test / Offline Coverage Tests (Python 3.13) (push) Waiting to run
Test / Offline Coverage Tests (Python 3.9) (push) Waiting to run
Test / Full Coverage (Python 3.11) (push) Waiting to run
Test / Core Provider Tests (OpenAI) (push) Blocked by required conditions
Test / Core Provider Tests (Anthropic) (push) Blocked by required conditions
Test / Core Provider Tests (Google) (push) Blocked by required conditions
Test / Core Provider Tests (Other) (push) Blocked by required conditions
Test / Anthropic Tests (push) Blocked by required conditions
Test / Gemini Tests (push) Blocked by required conditions
Test / Google GenAI Tests (push) Blocked by required conditions
Test / Vertex AI Tests (push) Blocked by required conditions
Test / OpenAI Tests (push) Blocked by required conditions
Test / Writer Tests (push) Blocked by required conditions
Test / Auto Client Tests (push) Blocked by required conditions
ty / type-check (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 13:36:38 +08:00

18 lines
565 B
Python

"""Legacy provider import paths backed by v2 provider implementations."""
from __future__ import annotations
from instructor.v2.core.provider_specs import PUBLIC_FACTORY_ATTRS
__all__ = list(PUBLIC_FACTORY_ATTRS)
def __getattr__(name: str):
if name not in PUBLIC_FACTORY_ATTRS:
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
module_path, attr_name = PUBLIC_FACTORY_ATTRS[name]
module = __import__(module_path, fromlist=[attr_name])
value = getattr(module, attr_name)
globals()[name] = value
return value