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

add basic support of openai spam checker #18

Merged
merged 4 commits into from
Dec 16, 2023
Merged

add basic support of openai spam checker #18

merged 4 commits into from
Dec 16, 2023

Conversation

umputun
Copy link
Owner

@umputun umputun commented Dec 16, 2023

This adds support of openai checks. The new set of parameters allows configuring all the expected things, like token, system prompt, modem etc. This works only in non-paranoid mode, i.e. on the first message only and after all other checks are passed. This is done to minimize the number of calls to openai and keep the price low.

all the default parameters should be fine, the only thing that needs to be set is OPENAI_TOKEN. By default it is not set and openai checks are disabled.

Copy link

cloudflare-workers-and-pages bot commented Dec 16, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: b0eeedf
Status:⚡️  Build in progress...

View logs

@umputun umputun merged commit 1b2ebb9 into master Dec 16, 2023
2 of 3 checks passed
@umputun umputun deleted the open-ai branch December 16, 2023 02:06
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