Skip to content

LCORE-3315: Adapt to new OGX OpenApi client - #2399

Open
asimurka wants to merge 1 commit into
lightspeed-core:feature/upgrade-ogx-to-1.2.xfrom
asimurka:feature/use-ogx-openapi-client
Open

LCORE-3315: Adapt to new OGX OpenApi client#2399
asimurka wants to merge 1 commit into
lightspeed-core:feature/upgrade-ogx-to-1.2.xfrom
asimurka:feature/use-ogx-openapi-client

Conversation

@asimurka

Copy link
Copy Markdown
Contributor

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

  • Refactor
  • New feature
  • Bug fix
  • CVE fix
  • Optimization
  • Documentation Update
  • Configuration Update
  • Bump-up service version
  • Bump-up dependent library [pyproject.toml + uv.lock]
  • Bump-up dependent library [requirements.*.txt for Konflux]
  • Bump-up library or tool used for development (does not change the final image)
  • CI configuration change
  • Konflux configuration change
  • Unit tests improvement
  • Integration tests improvement
  • End to end tests improvement
  • Benchmarks improvement

Tools used to create PR

Identify any AI code assistants used in this PR (for transparency and review context)

  • Assisted-by: Cursor

Related Tickets & Documents

Checklist before requesting a review

  • I have performed a self-review of my code.
  • PR has passed all pre-merge test jobs.
  • If it is a core feature, I have added thorough tests.

Testing

  • Please provide detailed steps to perform tests related to this code change.
  • How were the fix/results from this change verified? Please provide relevant screenshots or results.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: b9698938-b089-4dc5-9442-13bbc7e3663c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Comment thread src/utils/types.py
_instances: SingletonInstances = {}

def __call__(cls, *args: Any, **kwargs: Any) -> Any:
def __call__[T](cls: type[T], *args: object, **kwargs: object) -> T:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this adjustment, typechecker can correctly infer underlying type of singleton object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant