Framework integration

Connect LangChain after the base API path works

First verify the model with the plain OpenAI client. Framework layers make orchestration easier but also add retries, callbacks and defaults that can hide the original failure.

Planned recharge methods: Alipay and USDT. Collection is not enabled yet.

Integration order

  • Run a direct SDK request.
  • Configure the compatible base URL in LangChain.
  • Set the exact public model name.
  • Add callbacks for request and cost visibility.
  • Test tools and streaming independently.

Version-specific configuration

LangChain package names and constructor options change. Follow the current LangChain documentation for the installed version and keep the Qingheng-specific values in environment configuration.

Common questions

Is the API compatible with the OpenAI SDK?

The public gateway follows the OpenAI-compatible chat completions pattern. Confirm model-specific features in the live catalog and documentation before production rollout.

Where do model availability and prices come from?

Public model pages read the active catalog exposed by the service. A model is not presented as available merely because its name appears in an article.

Related resources