coderabbitai / ai-pr-reviewer

AI-based Pull Request Summarizer and Reviewer with Chat Capabilities.
https://coderabbit.ai
MIT License
1.41k stars 256 forks source link

Feature/add gpt 4 1106 preview version #504

Closed ms-omori closed 6 months ago

ms-omori commented 6 months ago

Summary by CodeRabbit

github-actions[bot] commented 6 months ago

Image description CodeRabbit

Walkthrough

This update introduces a more efficient way of setting token limits based on the model type in src/limits.ts and adds support for the 'gpt-4-1106-preview' model. It also improves project maintainability by ignoring IDE-specific and other unnecessary files via .gitignore.

Changes

File(s) Summary
.gitignore, .idea/.gitignore Added IDE-specific directories and other unnecessary files to be ignored by Git, improving project maintainability.
src/limits.ts Replaced if-else chain with a switch statement for setting token limits, enhancing code readability and efficiency. Added support for the 'gpt-4-1106-preview' model.

🐇💻

In the land where code rabbits dwell,

A new tale they've begun to tell.

With tokens aplenty, models galore,

They dance on keys, creating more.

Ignoring files, oh so neat,

Makes their burrow tidy and sweet.

Celebrate this change, for it's no small feat,

In the world of code, it's quite an elite! 🎉🥕


Uplevel your code reviews with CodeRabbit Pro ### CodeRabbit Pro If you like this project, please support us by purchasing the [Pro version](https://coderabbit.ai). The Pro version has advanced context, superior noise reduction and several proprietary improvements compared to the open source version. Moreover, CodeRabbit Pro is free for open source projects.