langchain - 💡(How to fix) Fix feat(partners): add langchain-pathcourse -PathCourse Health gateway integration [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
langchain-ai/langchain#37168Fetched 2026-05-04 04:58:17
View on GitHub
Comments
2
Participants
3
Timeline
6
Reactions
0
Timeline (top)
commented ×2labeled ×2closed ×1issue_type_added ×1
RAW_BUFFERClick to expand / collapse

Submission checklist

  • This is a feature request, not a bug report or usage question.
  • I added a clear and descriptive title that summarizes the feature request.
  • I used the GitHub search to find a similar feature request and didn't find it.
  • I checked the LangChain documentation and API reference to see if this feature already exists.
  • This is not related to the langchain-community package.

Package (Required)

  • langchain
  • langchain-openai
  • langchain-anthropic
  • langchain-classic
  • langchain-core
  • langchain-model-profiles
  • langchain-tests
  • langchain-text-splitters
  • langchain-chroma
  • langchain-deepseek
  • langchain-exa
  • langchain-fireworks
  • langchain-groq
  • langchain-huggingface
  • langchain-mistralai
  • langchain-nomic
  • langchain-ollama
  • langchain-openrouter
  • langchain-perplexity
  • langchain-qdrant
  • langchain-xai
  • Other / not sure / general

Feature Description

Add PathCourse Health as an official partner integration under libs/partners/pathcourse. PathCourse provides an OpenAI-compatible inference gateway with USDC billing on Base L2 via the x402 protocol and ERC-8004 agent identity. The integration is a thin wrapper: ChatPathCourse extends ChatOpenAI pointing to https://gateway.pathcoursehealth.com/v1, and PathCourseEmbeddings calls the pch-embed model. The package is already published on PyPI: https://pypi.org/project/langchain-pathcourse/

Use Case

Developers building autonomous agents with LangChain need a gateway that handles USDC billing and agent identity natively without custom payment logic. PCH's gateway is fully OpenAI API-compatible so existing LangChain chains work without modification, just swap ChatOpenAI for ChatPathCourse.

A draft implementation following the existing partners pattern is ready at https://github.com/pathcourse-health/langchain/tree/feat/pathcourse-integration/libs/partners/pathcourse, I'm happy to open the PR immediately once assigned.

Proposed Solution

No response

Alternatives Considered

No response

Additional Context

No response

extent analysis

TL;DR

The feature request is to add PathCourse Health as an official partner integration in LangChain, providing a thin wrapper for their OpenAI-compatible inference gateway with USDC billing.

Guidance

  • Review the draft implementation at https://github.com/pathcourse-health/langchain/tree/feat/pathcourse-integration/libs/partners/pathcourse to ensure it follows the existing partners pattern.
  • Verify that the PathCourse Health gateway is fully OpenAI API-compatible to confirm that existing LangChain chains will work without modification.
  • Consider assigning the PR to integrate the PathCourse Health partner into LangChain, allowing developers to utilize their gateway for USDC billing and agent identity.
  • Evaluate the security and reliability of the PathCourse Health gateway, particularly its use of the x402 protocol and ERC-8004 agent identity.

Example

No code snippet is provided as the issue does not contain specific code-related details.

Notes

The implementation of this feature relies on the compatibility of the PathCourse Health gateway with the OpenAI API, which should be thoroughly tested before integration.

Recommendation

Apply workaround: Assign the PR to integrate the PathCourse Health partner into LangChain, as the draft implementation is already available and follows the existing partners pattern.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING