rubberduck-ai / rubberduck-vscode

Use AI-powered code edits, explanations, code generation, error diagnosis, and chat in Visual Studio Code with the official OpenAI API.
https://marketplace.visualstudio.com/items?itemName=Rubberduck.rubberduck-vscode
MIT License
579 stars 70 forks source link

Support for OpenAI's new GPT-4-1106-preview model, also known as GPT-4 Turbo with 128K context window. #106

Closed danielbowne closed 5 months ago

danielbowne commented 7 months ago

Is this request related to a problem? Please describe.

I have been utilizing the 'Rubberduck: ChatGPT for Visual Studio Code' tool extensively in my work, leveraging its integration with OpenAI's GPT models for enhanced functionality. However, with the recent announcement of OpenAI's new GPT-4-1106-preview model, also known as GPT-4 Turbo, which offers an expanded 128K context window and lower operational costs. The absence of this model in 'Rubberduck: ChatGPT for Visual Studio Code' limits our ability to leverage the extended context for more complex queries and benefit from the cost efficiency that this new model promises.

Describe the solution you'd like

I propose that the 'Rubberduck: ChatGPT for Visual Studio Code' tool be updated to integrate the GPT-4-1106-preview model. This integration should include:

Additional context

As of now, there is no additional context or comparative tools to showcase. However, the integration of this model aligns with the forward-looking approach of keeping 'Rubberduck: ChatGPT for Visual Studio Code' at the forefront of AI-assisted tools. The extended context and cost-efficiency of GPT-4-1106-preview model are crucial for developers and professionals who rely on cutting-edge technology to streamline their workflows and optimize costs.

restlessronin commented 7 months ago

I notice that this support already seems to be in the modelfusion dependency, although the API has changed somewhat. This would be an important supporting feature for this PR.

@lgrammel, if the latest versions of modelfuision are stable, I can take a crack at updating rubberducky to use it.

lgrammel commented 7 months ago

@restlessronin yup, would be awesome to upgrade it. The changes to the modelfusion api should be minor. I also wanted to add ollama support at some point.

lgrammel commented 7 months ago

@restlessronin I've upgraded modelfusion to the latest version, so adding gpt-4-1106 support should be easy now