Skip to content

gpt-4o is retired from the OpenAI API on Jan 14, 2027 #118

Open

Description

@prasadrandika

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:

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:

  1. Look at buildRequest in pkg/openrisk/openrisk.go:50-57: the model is always gpt-4o.
  2. On or after January 14, 2027, run openrisk -f <nuclei output> with a valid OPENAI_API_KEY.
  3. The request to gpt-4o fails, 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions