Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update the context window and max output token of gpt-3.5-turbo #121

Conversation

PeterDaveHello
Copy link
Member

@PeterDaveHello PeterDaveHello commented Jul 27, 2024

I know we'll drop it at some point, but gpt-3.5-turbo currently points to gpt-3.5-turbo-0125 with a 16385 tokens context window and a maximum of 4096 output tokens. It'll be good to make sure all the details are correct and not confusing to the users.

Reference:

Summary by CodeRabbit

  • New Features

    • Increased context limits for the 'gpt-3.5-turbo' model, allowing for improved performance and output quality in applications.
  • Documentation

    • Removed outdated comments regarding future updates for model prompts, reflecting a focus on current capabilities.

gpt-3.5-turbo currently points to gpt-3.5-turbo-0125 with a 16385 tokens
context window and a maximum of 4096 output tokens.

Reference:
- https://platform.openai.com/docs/models/gpt-3-5-turbo
Copy link
Contributor

coderabbitai bot commented Jul 27, 2024

Walkthrough

The recent update enhances the token limits for the 'gpt-3.5-turbo' model within the extension, increasing the context value from 4096 to 16385 while keeping the max value unchanged. This adjustment aims to improve performance and output quality by accommodating a larger context window. Additionally, a comment regarding future updates for 'gpt-35-turbo' has been removed, signaling a refocus on current model specifications.

Changes

Files Change Summary
src/renderer/types.ts Updated MODEL_TOKEN_LIMITS for 'gpt-3.5-turbo': context limit increased from 4096 to 16385; max limit unchanged. Removed comment on 'gpt-35-turbo'.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 06c7123 and e844e33.

Files selected for processing (1)
  • src/renderer/types.ts (1 hunks)
Additional comments not posted (1)
src/renderer/types.ts (1)

151-152: Update confirmed: Increased context value for 'gpt-3.5-turbo'.

The context value has been correctly updated to 16385, aligning with the PR objective. The max value remains unchanged at 4096.

Ensure that other parts of the codebase referencing this constant are consistent with this update.

Verification successful

Update confirmed: Increased context value for 'gpt-3.5-turbo'.

The context value has been correctly updated to 16385, aligning with the PR objective. The max value remains unchanged at 4096. The references to MODEL_TOKEN_LIMITS and gpt-3.5-turbo are consistent across the codebase.

  • src/renderer/types.ts
  • src/helpers.ts
  • src/renderer/components/TokenCountPopup.tsx
  • src/renderer/components/ModelSelect.tsx
  • src/renderer/components/QuestionInputField.tsx
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify consistency of the updated context value for 'gpt-3.5-turbo' across the codebase.

# Test: Search for references to 'MODEL_TOKEN_LIMITS' and 'gpt-3.5-turbo'. Expect: Consistency with the updated context value.
rg --type ts -A 5 $'MODEL_TOKEN_LIMITS' | rg 'gpt-3.5-turbo'

Length of output: 57


Script:

#!/bin/bash
# Description: Verify consistency of the updated context value for 'gpt-3.5-turbo' across the codebase.

# Test: Search for all references to 'gpt-3.5-turbo' across the codebase.
rg --type ts 'gpt-3.5-turbo'

# Test: Search for all references to 'MODEL_TOKEN_LIMITS' across the codebase.
rg --type ts 'MODEL_TOKEN_LIMITS'

Length of output: 3912

Copy link
Member

@Christopher-Hayes Christopher-Hayes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you.

@Christopher-Hayes Christopher-Hayes merged commit f03d5ba into vscode-reborn-ai:develop Aug 6, 2024
@Christopher-Hayes Christopher-Hayes added this to the 3.26.0 milestone Oct 20, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants