Repository navigation
Description
Hi! Thanks for maintaining openrisk. The model it uses is being retired, and I'd like to help update it.
openrisk version:
Current main (66801bf). The latest release, v0.0.1 (2022), still uses GPT-3, so this affects builds from main.
Current Behavior:
openrisk sends every request to gpt-4o, which is hard-coded and can't be changed with a flag or setting:
pkg/openrisk/openrisk.go:52:Model: "gpt-4o"
OpenAI is shutting down gpt-4o (along with gpt-4o-mini, gpt-4.1 and gpt-4.1-mini) in the API on January 14, 2027. After that date, every openrisk run will fail.
https://developers.openai.com/api/docs/deprecations
The startup banner and -h description in cmd/openrisk/main.go, and the READMEs, also say "GPT-4o".
Expected Behavior:
openrisk keeps working after January 14, 2027. OpenAI lists gpt-6-luna as the recommended replacement.
Suggested change: change the model to "gpt-6-luna" and update the banner, description and READMEs to match. A plain swap looks safe: the request sends only model and messages, plus go-openai's default "stream": false. There's no temperature, no tools and no tokenizer, so none of the reasoning-model differences apply.
Steps To Reproduce:
- Look at
buildRequestinpkg/openrisk/openrisk.go:50-57: the model is alwaysgpt-4o. - On or after January 14, 2027, run
openrisk -f <nuclei output>with a validOPENAI_API_KEY. - The request to
gpt-4ofails, so no risk score is produced.
Anything else:
The same change for the llm_prompt helper in dsl is in progress in projectdiscovery/dsl#382.
Offer: I have the change ready on a branch: prasadrandika/openrisk@migrate-off-gpt-4o (see the diff). It includes a small test that checks the model and that the request carries no extra fields. Locally, go build (in cmd/openrisk and examples/), go test ./..., go vet ./... and golangci-lint pass, and the new test fails on the current code as expected. I haven't tested it against the real OpenAI API. I'm happy to open a PR if this direction works for you.
Thank you!
🤖 Generated with Claude Code
Activity