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

Feature: Add support for moderations #2521

Open
jlalmes opened this issue Aug 1, 2024 · 0 comments
Open

Feature: Add support for moderations #2521

jlalmes opened this issue Aug 1, 2024 · 0 comments
Labels
ai/provider enhancement New feature or request

Comments

@jlalmes
Copy link

jlalmes commented Aug 1, 2024

Feature Description

Would be nice if we could do the following:

import { createModeration } from 'ai';
import { openai } from '@ai-sdk/openai';

const result = await createModeration({
  model: openai('text-moderation-005'),
});

Use Case

No response

Additional context

No response

@lgrammel lgrammel changed the title Feature: Add support for openai.moderations.create Feature: Add support for moderations Aug 2, 2024
@lgrammel lgrammel added enhancement New feature or request ai/provider labels Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai/provider enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants