Skip to content

examples: verify LangChain ChatOpenAI integration - #798

Merged
acedatacloud-dev merged 5 commits into
mainfrom
codex/external-ecosystem-poc-20261006
Oct 18, 2026
Merged

acedatacloud-dev merged 5 commits into
mainfrom
codex/external-ecosystem-poc-20261006

Conversation

@acedatacloud-dev

@acedatacloud-dev acedatacloud-dev commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Developers can use LangChain's existing ChatOpenAI adapter with Ace Data Cloud's Chat Completions endpoint. This change adds a runnable example for synchronous chat, streaming, and a complete two-request tool round trip, plus a reproducible Python environment, application API key setup, and canonical acquisition links that identify the LangChain entry point.

The example explicitly selects Chat Completions, disables automatic retries, and distinguishes response token usage from charged Credits. It uses langchain-openai==1.7.0; CI automatically discovers example tests and covers both 1.6.6 and 1.7.0. The branch incorporates current main (1a09bc80bd1e899db9d9fd159770e54f84bd7648).

Validation

  • 2026-10-12: two fresh Python 3.12 environments each passed all 10 real-adapter HTTP mock tests (1.6.6 and 1.7.0). Ruff lint/format using the SDK Python configuration and git diff --check passed. These checks do not send billable API requests.
  • Latest CI run: all 10 jobs passed, including both LangChain versions, provider generation, Python lint/test/build, and TypeScript lint/build/tests.
  • Historical live validation on 2026-10-06, using 1.6.6 and gpt-4o-mini: sync and stream each reported 23 tokens and matching 200 usage records deducting 0.000014191695 Credits. The exact tools example returned 5; its two requests reported 82 and 61 tokens and matching 200 records deducting 0.0000420074172 and 0.0000215713764 Credits. Four-request total: 0.0000919621836 Credits. Invalid-token validation returned 401 invalid_token; 403/404/429/500 were tested with mocks. No new paid live validation was performed in this follow-up.

Publication

Merge this PR before the customer guide, so the guide's example link resolves on main. This change does not publish an Ace-specific provider package. LangChain recommends custom base URLs for standard-compatible endpoints; its official listing process requires a separately published integration package. No official Ace listing is claimed, and acquisition links do not prove signup or first-call conversion.

2026-10-19 shared-main refresh

Incorporates current SDK main ad57d1d37646d009b7df6e4bb3a5022b4908cf1e while preserving its Make App Schema job and this PR's LangChain matrix/lint. No example behavior changed. Exact head 7e49e7c85e809fbc258b4eef6c93a3ba60cdb500; new normal CI passed all 11 jobs for this exact head, including the Make schema job: https://github.com/AceDataCloud/SDK/actions/runs/39174991912 . Shared merge is coordinator-owned, before Backend #2116. This remains the standard compatibility example; native ChatAceDataCloud and separate service packages are maintained in https://github.com/AceDataCloud/LangChain .

@acedatacloud-dev acedatacloud-dev changed the title docs: add LangChain chat integration POC examples: add LangChain chat integration POC Oct 6, 2026
@acedatacloud-dev acedatacloud-dev changed the title examples: add LangChain chat integration POC examples: verify LangChain ChatOpenAI integration Oct 6, 2026
Update the example against current main, test adapters 1.6.6 and 1.7.0,
and provide runnable setup with canonical acquisition links.
@acedatacloud-dev
acedatacloud-dev merged commit a5291ba into main Oct 18, 2026
11 checks passed
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