ferraridavide / ChatGPTPowerToys

135 stars 46 forks source link

Select specific model #16

Open AlexZeGamer opened 1 month ago

AlexZeGamer commented 1 month ago

It would be nice if we could set the model we want to use from the settings, because the default one is probably not the one I want to use, and OpenAI keep changing it.

You can get the list dynamically at https://chatgpt.com/backend-api/models (It doesn't seem to show all models if not logged in), or simply have a text box for the user to enter the name of the model they want.

The model is applied with ?q=Hello%20world&model=gpt-4o

AlexZeGamer commented 1 month ago

Idk how related it is, but being able to change the base URL too would be an easy fix to #5

ferraridavide commented 1 month ago

This is a good idea! I'll keep this in mind for future updates (more than welcome to accept PRs for this)

ferraridavide commented 1 month ago

The model is applied with ?q=Hello%20world&model=gpt-4o

Looking at this now, it doesn't seem to work propertly, this does set the provided model in the UI, but then the prompt is executed with the default model anyway

Can anyone confirm this? @AlexZeGamer

AlexZeGamer commented 1 month ago

Hm, you seem to be right, I'm quite surprised by how it works:

However using the model parameter alone without query seems to work consistently 🤷🏼‍♂️

TBH I didn't try it with both parameters recently since both work independently, but I'm sure it used to work a few months ago. It's not the first time I catch the frontend of ChatGPT acting really weird.

I guess this feature is not feasible as is then...

ferraridavide commented 1 month ago

We should keep an eye on this, it's probably just a bug on their end, the code to make this work and set the model in the plugin's settings is ready