Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update constant.ts #4960

Closed
wants to merge 5 commits into from
Closed

Update constant.ts #4960

wants to merge 5 commits into from

Conversation

inter0925
Copy link

@inter0925 inter0925 commented Jul 9, 2024

add gpt-4o-all

Summary by CodeRabbit

  • New Features

    • Added new models "gpt-4-all" and "gpt-4o-all" to the available OpenAI models.
  • Chores

    • Updated Docker metadata action to use new image paths.

add gpt-4o-all
Copy link

vercel bot commented Jul 9, 2024

@inter0925 is attempting to deploy a commit to the NextChat Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

coderabbitai bot commented Jul 9, 2024

Walkthrough

The recent updates introduce new AI models and make adjustments to the Docker workflow. Specifically, two new AI models, "gpt-4-all" and "gpt-4o-all," have been added to the list of available models. Additionally, the Docker workflow's images parameter has been updated to reflect new repository names. These changes enhance the model options and update the Docker configuration for better compatibility and performance.

Changes

Files Change Summary
app/constant.ts Added new models "gpt-4-all" and "gpt-4o-all" to the list of openaiModels.
.github/workflows/docker.yml Updated docker/metadata-action's images parameter to new repository names.

Poem

In the land of code, models arise,
GPT-4-all and GPT-4o-all, see the skies.
Docker paths now align, in perfect rapport,
A symphony of updates, we all adore.
🐰✨


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 Configration 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 47ea383 and 3d37a0d.

Files selected for processing (1)
  • app/constant.ts (1 hunks)
Files skipped from review due to trivial changes (1)
  • app/constant.ts

@@ -174,6 +174,7 @@ const openaiModels = [
"gpt-4-turbo",
"gpt-4-turbo-preview",
"gpt-4o",
"gpt-4o-all",
Copy link
Contributor

Choose a reason for hiding this comment

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

can not find model from: https://api.openai.com/v1/models

Copy link
Author

Choose a reason for hiding this comment

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

'官方最新的gpt-4、联网、多模态识别分析和生成图片,效果100%等于ChatGPT PLUS会员的客户端版本,支持联网,模型名称:gpt-4-all、gpt-4o-all'

我加上去是可以正常使用的,谢谢🙏
image

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 3d37a0d and 7b28b69.

Files selected for processing (1)
  • app/constant.ts (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • app/constant.ts

add gpt-4-all , gpt-4o-all
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 7b28b69 and 9941a75.

Files selected for processing (1)
  • app/constant.ts (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • app/constant.ts

change image name
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

Outside diff range, codebase verification and nitpick comments (1)
.github/workflows/docker.yml (1)

28-28: The Docker image name yidadaa/chatgpt-next-web-n is likely incorrect.

The correct image name appears to be yidadaa/chatgpt-next-web, as it is consistently used in other parts of the repository such as docker-compose.yml, README_CN.md, and README.md.

  • .github/workflows/docker.yml (line 28): Change yidadaa/chatgpt-next-web-n to yidadaa/chatgpt-next-web.
Analysis chain

Verify the new Docker image name.

The images parameter has been updated to yidadaa/chatgpt-next-web-n. Ensure that this change aligns with the repository's naming conventions and that the new image name exists or is intended to be used.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the existence and correctness of the new Docker image name.

# Test: Search for the image name in the repository. Expect: Occurrences of `yidadaa/chatgpt-next-web-n`.
rg --type yaml 'yidadaa/chatgpt-next-web-n'

Length of output: 43


Script:

#!/bin/bash
# Description: Verify the existence and correctness of the new Docker image name by searching across all file types and looking for similar image names.

# Search for the new image name across all file types
rg 'yidadaa/chatgpt-next-web-n'

# Search for similar image names that might indicate a pattern or typo
rg 'yidadaa/chatgpt-next-web'

Length of output: 426

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 9941a75 and 5fe421d.

Files selected for processing (1)
  • .github/workflows/docker.yml (1 hunks)

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 5fe421d and 7625596.

Files selected for processing (1)
  • .github/workflows/docker.yml (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/docker.yml

Copy link
Contributor

@RubuJam RubuJam left a comment

Choose a reason for hiding this comment

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

请说明一下,下面的修改的目的

-images: yidadaa/chatgpt-next-web
+images: mereado/chatgpt-next-web

@inter0925 inter0925 closed this Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants