Robitx / gp.nvim

Gp.nvim (GPT prompt) Neovim AI plugin: ChatGPT sessions & Instructable text/code operations & Speech to text [OpenAI, Ollama, Anthropic, ..]
MIT License
784 stars 67 forks source link

feat: update defaults to use latest model versions for gpt-4 and gpt-3.5 #138

Closed yiblet closed 4 months ago

yiblet commented 4 months ago

This pull request introduces updates to the default model configurations in the config.lua file to leverage the latest versions of OpenAI's models. Specifically, the gpt-4o model has replaced the previous gpt-4-1106-preview model, and the gpt-3.5-turbo model has replaced the gpt-3.5-turbo-1106 model. These changes have been applied across various sections of the configuration to ensure consistency and improved performance.

The primary motivation for this update is to take advantage of the enhanced capabilities and optimizations available in the latest model versions. By transitioning to gpt-4o and gpt-3.5-turbo, users can expect more accurate and efficient AI responses, whether they are engaging in chat-based interactions or utilizing the models for command-based tasks. The new gpt-4o model is also 50% cheaper.

In addition to updating the model names, the associated parameters such as temperature and top_p values remain unchanged to retain the existing behavior of the AI. This ensures a smooth transition for users while benefiting from the advancements in the underlying AI technology.