PublicAffairs / openai-gemini

Gemini ➜ OpenAI API proxy. Serverless!
https://my-openai-gemini-demo.vercel.app/
MIT License
380 stars 235 forks source link

question regarding safety filter #14

Closed DarkReaperBoy closed 2 months ago

DarkReaperBoy commented 2 months ago

So, with gemini's api, can disable certain safety filters, is it on this backend and if so, how to disable the filter?

johnd0e commented 2 months ago

Filter is already disabled: https://github.com/PublicAffairs/openai-gemini/blob/c11d54b789a7cc150b7831eb40e15418704d0e00/src/worker.mjs#L120

See https://ai.google.dev/gemini-api/docs/safety-settings

DarkReaperBoy commented 2 months ago

weird as i find it stops streaming when it detects something inappropriate, thanks anyways :pray: