LCORE-3315: Adapt to new OGX OpenApi client - #2399
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| _instances: SingletonInstances = {} | ||
|
|
||
| def __call__(cls, *args: Any, **kwargs: Any) -> Any: | ||
| def __call__[T](cls: type[T], *args: object, **kwargs: object) -> T: |
There was a problem hiding this comment.
With this adjustment, typechecker can correctly infer underlying type of singleton object.
Description
This PR adapts Lightspeed Core to the new OGX OpenAPI client surface: call sites and tests move off the old client APIs (for example model listing via openai.list(), service-client headers via api_client, and rebuilding clients where .copy() is gone), Azure/provider-data handling is centralized in a shared read_provider_data helper reused by the Pydantic AI provider, and the Singleton metaclass typing is tightened without changing runtime behavior.
Type of change
pyproject.toml+uv.lock]requirements.*.txtfor Konflux]Tools used to create PR
Identify any AI code assistants used in this PR (for transparency and review context)
Related Tickets & Documents
Checklist before requesting a review
Testing