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

safety settings mapper helper function #17

Merged
merged 1 commit into from
Jan 7, 2024
Merged

Conversation

e-roy
Copy link
Owner

@e-roy e-roy commented Jan 7, 2024

Pull Request Template

Description

Reduce repeat code in the API routes

Type of change

This PR adds a safety-settings-mapper.ts file to handle safety settings for the api routes. Code was repeated in both routes.

Checklist:

  • My code follows the code style of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.

Related Issue

Link to the issue that will be fixed by this pull request.

Screenshots (if applicable)

Copy link

vercel bot commented Jan 7, 2024

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

Name Status Preview Updated (UTC)
gemini-pro-vision-playground ✅ Ready (Inspect) Visit Preview Jan 7, 2024 2:58pm

@e-roy e-roy merged commit 9006d1a into main Jan 7, 2024
3 checks passed
@e-roy e-roy deleted the safety-settings-mapper branch January 7, 2024 15:04
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.

1 participant