Skip to content

llm_prompt default model gpt-4o-mini is retired from the OpenAI API on Jan 14, 2027 #381

Closed

Description

@prasadrandika

Hi! Thanks for maintaining dsl. I noticed the llm_prompt helper's default model is being retired, and I'd like to help update it.

What's happening

OpenAI is shutting down gpt-4o-mini (along with gpt-4o, gpt-4.1 and gpt-4.1-mini) in the API on January 14, 2027. After that date, llm_prompt calls that don't pass a model or set LLM_MODEL will fail. OpenAI lists gpt-6-luna as the recommended replacement:
https://developers.openai.com/api/docs/deprecations

Where the old model is used

I searched the whole repo. There are two places:

Also, README.md:101 still says the default is "GPT 3.5".

Suggested change

Change defaultModel to "gpt-6-luna" and update the comment and README to match. The existing tests use the defaultModel constant, so they follow the change without edits.

One thing I couldn't confirm

gpt-6-luna is a reasoning model. The shared client in projectdiscovery/utils always sends "temperature": 0 (llm/openai.go:69-74 at v0.11.13), and OpenAI's migration guide says to omit temperature for its newest models. I don't have an API key to test whether gpt-6-luna accepts temperature: 0. If it doesn't, changing only the default here would break the helper before the shutdown date. In that case, the fix might belong in utils instead (not sending temperature to reasoning models).

Offer

I have the change ready on a branch: prasadrandika/dsl@migrate-off-gpt-4o-mini (see the diff). Locally, the llm and randomip tests pass and golangci-lint reports 0 issues. I couldn't build the root package because one dependency download was blocked on my network, so I'm relying on CI for the full go test -race ./.... I'm happy to open a PR if this direction works for you, or to adjust it, for example by also sending a PR to utils if temperature turns out to be a problem.

Thank you!

🤖 Generated with Claude Code

Activity

  1. dogancanbakir commented on Nov 18, 2026

    @dogancanbakir
    Member

    Thanks @prasadrandika, this is right, and the temperature concern is real: OpenAI says to omit temperature for its newest models, and utils always sends it. Fixing that first in projectdiscovery/utils#853.

    Once a utils release ships with it, please open your PR with the defaultModel change plus the utils bump.

  2. dogancanbakir commented on Nov 18, 2026

    @dogancanbakir
    Member

    @prasadrandika utils v0.11.15 is out with the fix. Your PR can go ahead: bump github.com/projectdiscovery/utils to v0.11.15 along with the defaultModel change.

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

Metadata

Metadata

Assignees

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