Skip to content

update LangChain generator for 1.x library support#1551

Merged
jmartin-tech merged 3 commits intoNVIDIA:mainfrom
jmartin-tech:fix/update-langchain
Jan 23, 2026
Merged

update LangChain generator for 1.x library support#1551
jmartin-tech merged 3 commits intoNVIDIA:mainfrom
jmartin-tech:fix/update-langchain

Conversation

@jmartin-tech
Copy link
Collaborator

Update langchain support for 1.x library. This maintains the limited support in this generator as being for direct model invoke() calls and expands the generator to support Conversation based prompts using the OpenAI format.

Enhancement also supports injection of a specific model_provider as defined in the 1.x langchain chat interface and forwarding of configurable_fields passed as a set via configuration.

Verification

List the steps needed to make sure this thing works

  • garak -t langchain -n <model_name>
  • Verify various proxied models work with probes

Signed-off-by: Jeffrey Martin <jemartin@nvidia.com>
@leondz leondz added the generators Interfaces with LLMs label Jan 15, 2026
Copy link
Collaborator

@leondz leondz left a comment

Choose a reason for hiding this comment

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

one q around config param var use

Signed-off-by: Jeffrey Martin <jemartin@nvidia.com>
@leondz
Copy link
Collaborator

leondz commented Jan 21, 2026

lgtm

@jmartin-tech jmartin-tech merged commit b386b14 into NVIDIA:main Jan 23, 2026
15 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

generators Interfaces with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants