Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

langchain: support api key argument with OpenAI moderation chain #29140

Merged
merged 3 commits into from
Jan 13, 2025

Conversation

varjas
Copy link
Contributor

@varjas varjas commented Jan 10, 2025

Description: Makes it possible to instantiate OpenAIModerationChain with an openai_api_key argument only and no OPENAI_API_KEY environment variable defined.

Issue: #25176

Dependencies: openai

Copy link

vercel bot commented Jan 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Jan 13, 2025 3:50pm

@varjas varjas force-pushed the moderation-api-key branch from 4ab0462 to cc194a3 Compare January 10, 2025 20:40
@varjas varjas marked this pull request as ready for review January 10, 2025 20:48
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. langchain Related to the langchain package labels Jan 10, 2025
@ccurme ccurme self-assigned this Jan 13, 2025
@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Jan 13, 2025
@ccurme ccurme merged commit e156b37 into langchain-ai:master Jan 13, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
langchain Related to the langchain package lgtm PR looks good. Use to confirm that a PR is ready for merging. size:S This PR changes 10-29 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants