yaroslavyaroslav / OpenAI-sublime-text

First class Sublime Text AI assistant with GPT-4o and llama.cpp support!
MIT License
130 stars 11 forks source link

Migrate all functionality to chat API #19

Closed yaroslavyaroslav closed 9 months ago

yaroslavyaroslav commented 1 year ago

Related to that OpenAI post they will deprecate all non chat API at 04.01.2024.

Which is fine, since, all models that are available within them at this time are relatively old crap, and thus maintaining code that handles them is annoying.

The same post provides some hacks & tricks that allowing to implement all that modes within chat API with usage of the latest models, they not yet available though.

Anyway those changes would require some internal changes of the core of plug-in — chat history handling logic.

Such a good thing that there's a plenty time for not doing that 🤗.

yaroslavyaroslav commented 10 months ago

Working on this issue going into this branch: https://github.com/yaroslavyaroslav/OpenAI-sublime-text/tree/feature/completion-legacy-to-chatgpt-migration

Another major improvement is that settings now supports multiple model/assistant setups. This made as preparation for implementation of this issue #22.