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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

varjas
Copy link

@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 10, 2025 8:40pm

@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
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 size:S This PR changes 10-29 lines, ignoring generated files.
Projects
Status: Triage
Development

Successfully merging this pull request may close these issues.

1 participant