You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
llm_prompt default model gpt-4o-mini is retired from the OpenAI API on Jan 14, 2027 #381
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.
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.
@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.
Activity
dogancanbakir commentedon Nov 18, 2026
Thanks @prasadrandika, this is right, and the temperature concern is real: OpenAI says to omit
temperaturefor 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
defaultModelchange plus the utils bump.dogancanbakir commentedon Nov 18, 2026
@prasadrandika utils v0.11.15 is out with the fix. Your PR can go ahead: bump
github.com/projectdiscovery/utilsto v0.11.15 along with thedefaultModelchange.