@jkomyno @Sushmithamallesh Hi! It’s been about one week since this PR was opened. The bot results look good so far. Could someone help take another look and follow up on the review when possible?
This PR adds small Qianfan helper APIs on top of the existing OpenAI-compatible provider path, along with documentation and tests for both Python and TypeScript.
The goal is to make Qianfan a documented and tested path in the OpenAI providers without introducing a separate Qianfan provider package or changing the default OpenAI behavior.
Qianfan already exposes an OpenAI-compatible API surface, including the standard SDK pattern of setting a custom base URL.
Given the current provider boundaries in this repository, adding a separate Qianfan provider would duplicate the existing OpenAI-compatible path. This PR keeps Qianfan on that existing path, but removes repeated boilerplate by providing small helper constructors/config builders and first-party docs.
In short, this turns a custom base URL workaround into an officially documented and tested integration path.
Added the following exports in composio_openai:
QIANFAN_BASE_URLcreate_qianfan_client(...)create_qianfan_responses_client(...)These helpers:
appid header when providedAdded the following exports in @composio/openai:
QIANFAN_BASE_URLcreateQianfanConfig(...)createQianfanClient(...)These helpers provide the same behavior as the Python helpers and return plain OpenAI client configuration where appropriate.
Added Qianfan guidance to:
The docs explicitly position Qianfan as supported through the existing OpenAI-compatible path rather than as a separate provider.
Added deterministic tests for the new helper behavior:
appid, and header mergingThis PR intentionally does not include:
Ran the following checks locally:
uv run pytest tests/test_qianfan_openai_helpers.py -v
pnpm --filter @composio/openai test
Results:
4 passed32 passed@jkomyno @Sushmithamallesh Hi! It’s been about one week since this PR was opened. The bot results look good so far. Could someone help take another look and follow up on the review when possible?
@jimmyzhuu is attempting to deploy a commit to the Composio Team on Vercel.
A member of the Team first needs to authorize it.