onuratakan / gpt-computer-assistant

gpt-4o for windows, macos and linux
MIT License
4.75k stars 441 forks source link

Refactor get_model() function to support multiple models #83

Closed Mideky-hub closed 4 weeks ago

Mideky-hub commented 4 weeks ago

It will allow use to easly incorporate more models as the request increase.

When you want to add a model:

That's it! Simplier, prettier, cleaner.

To complete that I will refactor the load_api_key() in order to pass though parameter the model to associate the key search to template model and therefore not having one "main" model but a universal application which you can use which ever model to help you.

Mideky-hub commented 4 weeks ago

Another thing to see here is that we can incorporte a APIGetter class to easily adapt to model change with a practical template that adapt when a request is triggered.

Mideky-hub commented 4 weeks ago

If merged, then I'll be integrating multiple models.

onuratakan commented 4 weeks ago

Thank you so much.

Mideky-hub commented 4 weeks ago

You're welcome! That's a pleasure!