yaroslavyaroslav / OpenAI-sublime-text

First class Sublime Text AI assistant with GPT-o1 and ollama support!
MIT License
198 stars 15 forks source link

Migrate all functionality to chat API #19

Closed yaroslavyaroslav closed 1 year 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 1 year 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.