farizrahman4u / loopgpt

Modular Auto-GPT Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support More OpenAI Models Like gpt-3.5-turbo-16k

opened this issue ยท comments

โš ๏ธ Please check that this feature request hasn't been suggested before.

  • I searched previous Issues didn't find any similar feature requests.

๐Ÿ”– Feature description

Current code limits the models to "gpt-3.5-turbo", "gpt-4" and "gpt-4-32k". In some cases like summary, it kind of defaults to "gpt-3.5-turbo".
But there are other OpenAI models, right now and in the future too.
Especially to read long web pages, I would like to use "gpt-3.5-turbo-16k". It gets rejected by the LoopGPT module code, although it would work with OpenAI just fine.
thanks

โœ”๏ธ Solution

Refactor the code so that all models supported by OpenAI can be used, at least ChatModels as this is what you architecture expects.

You could add an early check that the model is supported using openai.Model.list()

Thanks

โ“ Alternatives

No response

๐Ÿ“ Additional Context

No response

Acknowledgements

  • My issue title is concise, descriptive, and in title casing.
  • I have searched the existing issues to make sure this feature has not been requested yet.
  • I have provided enough information for the maintainers to understand and evaluate this request.