jehna / humanify

Deobfuscate Javascript code using ChatGPT
MIT License
301 stars 19 forks source link

Add support for OpenAI's gpt-4 turbo (gpt-4-1106-preview) model #4

Open 0xdevalias opened 7 months ago

0xdevalias commented 7 months ago

Since OpenAI released the GPT-4 Turbo model (gpt-4-1106-preview) and reduced the prices of GPT-4 at their recent dev day, it would be cool if this tool was able to support using those as well.

Further Reading

See Also

0xdevalias commented 7 months ago

A quick search of the repo suggest changes would need to be made to at least the following files:

jehna commented 7 months ago

Yes, great point! I think it would make sense to even parametrize the model as a command line argument 🤔

0xdevalias commented 7 months ago

I think it would make sense to even parametrize the model as a command line argument

Yeah, I was thinking that too. Though maybe it can still have some 'friendly aliases' built in or similar so that the end user doesn't need to know the exact model name they need (specifically thinking about the current preview version of gpt-4-turbo in particular).

There are API's for querying the models available too, so if you wanted to get really fancy and not hardcode things, the CLI could potentially fetch the available models from that URL and cache them, then tell the user which ones could be used. Though that might be overkill.