Skip to content

Conversation

@pigri
Copy link

@pigri pigri commented May 14, 2025

  • Introduced OpenAI wrapper in library/sinks/OpenAI.ts to handle OpenAI API interactions.
  • Implemented prompt injection detection in library/vulnerabilities/prompt-injection/detectPromptInjection.ts.
  • Updated package.json and package-lock.json to include OpenAI dependency.
  • Modified protect.ts to register the OpenAI wrapper.
  • Added example application for prompt scanning in sample-apps/prompt-scanner with necessary environment variables.

- Introduced OpenAI wrapper in `library/sinks/OpenAI.ts` to handle OpenAI API interactions.
- Implemented prompt injection detection in `library/vulnerabilities/prompt-injection/detectPromptInjection.ts`.
- Updated `package.json` and `package-lock.json` to include OpenAI dependency.
- Modified `protect.ts` to register the OpenAI wrapper.
- Added example application for prompt scanning in `sample-apps/prompt-scanner` with necessary environment variables.
},
};

const req = request(options, (res) => {
Copy link

Choose a reason for hiding this comment

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

todo for myself: use our utility function, set timeout

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.

3 participants