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

Added generator for OpenRouter.ai #1051

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

pedramamini
Copy link

Addresses the feature request for adding an OpenRouter.ai compatible generator. Which is compatible with OpenAI. Related issue:

#692

Verification

List the steps needed to make sure this thing works

$ python3 -m garak --model_type openrouter --model_name anthropic/claude-3.5-sonnet --probes encoding
garak LLM vulnerability scanner v0.10.1.post1 ( https://github.com/NVIDIA/garak ) at 2024-12-24T00:31:33.473234
📜 logging to /Users/pedram/.local/share/garak/garak.log
🦜 loading generator: OpenRouter: anthropic/claude-3.5-sonnet
📜 reporting to /Users/pedram/.local/share/garak/garak_runs/garak.ebdebda1-5db4-43f5-a128-826b46f3cd70.report.jsonl
🕵️  queue of probes: encoding.InjectAscii85, encoding.InjectBase16, encoding.InjectBase2048, encoding.InjectBase32, encoding.InjectBase64, encoding.InjectBraille, encoding.InjectEcoji, encoding.InjectHex, encoding.InjectMorse, encoding.InjectNato, encoding.InjectROT13, encoding.InjectUU, encoding.InjectZalgo
probes.encoding.InjectAscii85:  22%|█████████████████▊                                                                | 13/60 

Tests pass.

Copy link
Contributor

github-actions bot commented Dec 24, 2024

DCO Assistant Lite bot All contributors have signed the DCO ✍️ ✅

@pedramamini
Copy link
Author

I have read the DCO Document and I hereby sign the DCO

@pedramamini
Copy link
Author

Recheck

github-actions bot added a commit that referenced this pull request Dec 24, 2024
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