Repository navigation
add typesafe (jev) provider - #82
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #79
Adds a
typesafeprovider for TypeSafe's Jev classifier model.How it scores
Each message is sent to
POST /v1/systemonewith one yes/no (noul) question. Jev returns the probability of "yes" (0–1), and the score isround(noul * 100). Sominscore: 75means "at least 75% likely spam". Request and response shapes follow TypeSafe's OpenAPI spec.Config
apikeyAuthorization: Bearer …modeljev-1.14.0(pinned) orjev-latestmaxsize50000instructionsIs this email spam, phishing or a scam?promptstate; same placeholders as the other AI providers, but the default contains no questionurlhttps://api.typesafe.ai, for proxies such as LiteLLMEmbeds
AIBase, somodel,maxsizeand the prompt template work as they do for the other AI providers. A non-200 response returns the status plus the API'sdetailtext (e.g. context limit exceeded), and the message is skipped like any other failed analysis.Also
docs/configuration/providers.md: thetypeoptions were missinggeminiandrspamd.Testing
go build,go vetandgolangci-lintpass (0 issues).mkdocs build --strictpasses.prompt/instructions, score rounding at the edges, a 400 with itsdetail, and a missing answer. I didn't commit that test because the repo has no tests yet.🤖 Generated with Claude Code