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

feat(model): remove deprecated models #4982

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RubuJam
Copy link
Contributor

@RubuJam RubuJam commented Jul 12, 2024

  • 删除弃用的模型
  • 添加 Gemini 部署限制说明

  • Remove deprecated models
  • Add Gemini deployment restrictions description

refs:
https://platform.openai.com/docs/deprecations

Summary by CodeRabbit

  • New Features
    • Updated pricing details for various GPT models across multiple languages for better cost transparency.
  • Documentation
    • Enhanced FAQ sections in multiple languages (EN, CN, ES, JA, KO) with deployment tips, troubleshooting steps, and detailed billing information.
    • Added comments for region preferences in the Gemini API within the Google API documentation.
  • Refactor
    • Simplified model versioning by removing specific dates and outdated versions from the model lists.
    • Updated logic for identifying vision models.

Copy link

vercel bot commented Jul 12, 2024

@RubuJam 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 12, 2024

Walkthrough

The changes encompass updates to constants, model versions, and documentation, streamlining the list of supported models, clarifying regional usage for the Gemini API, and revising billing information. Deployment instructions have been enhanced for better user guidance, ensuring clarity and efficiency in accessing services.

Changes

File Path Summary
app/constant.ts Removed outdated models, updated KnowledgeCutOffDate, and streamlined lists for OpenAI and Google models.
app/api/google/[...path]/route.ts Added comments clarifying regional preferences for the Gemini API.
app/utils.ts Simplified isVisionModel function and refined visionKeywords array.
docs/faq-cn.md, docs/faq-es.md, docs/faq-ja.md, docs/faq-ko.md Updated billing details, improved clarity of links, and enhanced instructions related to deployment.
docs/faq-en.md Expanded deployment tutorials and restructured proxy usage and billing information.
docs/vercel-en.md Provided a comprehensive guide for deploying projects with Vercel.

Poem

In code we dance, models we rearrange,
Old versions retire, new ones take the stage.
Billing's more clear, support is refined,
Deploy with ease, solutions aligned.
Through lines of change, progress we chase,
Forward we move, with a smile on our face. 🐇✨


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 89049e1 and 6f70750.

Files selected for processing (3)
  • app/api/google/[...path]/route.ts (1 hunks)
  • app/constant.ts (1 hunks)
  • app/utils.ts (1 hunks)
Files skipped from review due to trivial changes (2)
  • app/api/google/[...path]/route.ts
  • app/utils.ts
Additional comments not posted (3)
app/constant.ts (3)

Line range hint 99-106:
LGTM! Verify the usage of the removed models.

The deprecated models have been correctly removed from the openaiModels array. Ensure that the removal of these models does not break any functionality.

Verification successful

LGTM! Verify the usage of the removed models.

The deprecated models have been correctly removed from the openaiModels array. Ensure that the removal of these models does not break any functionality.

  • The search for occurrences of the removed models returned no results, indicating they are not used elsewhere in the codebase.
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that the removal of the deprecated models does not break any functionality.

# Test: Search for the usage of the removed models. Expect: No occurrences.
rg --type javascript -A 5 $'gpt-3.5-turbo-0125|gpt-4-0613|gpt-4-32k|gpt-4-32k-0613|gpt-4-1106-preview'

Length of output: 138


Script:

#!/bin/bash
# Description: Verify that the removal of the deprecated models does not break any functionality.

# Test: Search for the usage of the removed models. Expect: No occurrences.
rg --glob '*.js' --glob '*.ts' -A 5 'gpt-3.5-turbo-0125|gpt-4-0613|gpt-4-32k|gpt-4-32k-0613|gpt-4-1106-preview'

Length of output: 113


Line range hint 94-97:
LGTM! Verify the usage of the removed entry.

The entry for "gemini-pro" has been correctly added with the knowledge cut-off date of "2023-12". Ensure that the removal of the "gpt-4-vision-preview" entry does not break any functionality.

Verification successful

No issues found with the removal of "gpt-4-vision-preview"

The search confirmed that "gpt-4-vision-preview" is not used anywhere in the codebase, ensuring that its removal does not break any functionality.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that the removal of the "gpt-4-vision-preview" entry does not break any functionality.

# Test: Search for the usage of "gpt-4-vision-preview". Expect: No occurrences.
rg --type javascript -A 5 $'"gpt-4-vision-preview"'

Length of output: 87


Script:

#!/bin/bash
# Description: Verify that the removal of the "gpt-4-vision-preview" entry does not break any functionality.

# Test: Search for the usage of "gpt-4-vision-preview". Expect: No occurrences.
rg -A 5 '"gpt-4-vision-preview"'

Length of output: 34


Script:

#!/bin/bash
# Description: Verify that the removal of the "gpt-4-vision-preview" entry does not break any functionality.

# Test: Search for the usage of "gpt-4-vision-preview" across all file types. Expect: No occurrences.
rg -A 5 '"gpt-4-vision-preview"'

Length of output: 34


Line range hint 108-111:
LGTM! Verify the usage of the removed model.

The deprecated "gemini-pro-vision" model has been correctly removed from the googleModels array. Ensure that the removal of this model does not break any functionality.

Verification successful

LGTM! Verify the usage of the removed model.

The deprecated "gemini-pro-vision" model has been correctly removed from the googleModels array. The search confirmed that the only references to "gemini-pro-vision" are within commented-out code, indicating it is not actively used. Ensure that the removal of this model does not break any functionality.

  • app/client/platforms/google.ts: Commented-out code references "gemini-pro-vision".
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that the removal of the deprecated "gemini-pro-vision" model does not break any functionality.

# Test: Search for the usage of "gemini-pro-vision". Expect: No occurrences.
rg --type javascript -A 5 $'"gemini-pro-vision"'

Length of output: 84


Script:

#!/bin/bash
# Description: Verify that the removal of the deprecated "gemini-pro-vision" model does not break any functionality.

# Test: Search for the usage of "gemini-pro-vision". Expect: No occurrences.
rg "gemini-pro-vision" -A 5

Length of output: 474


Script:

#!/bin/bash
# Description: Verify that the removal of the deprecated "gemini-pro-vision" model does not break any functionality.

# Test: Search for uncommented usage of "gemini-pro-vision". Expect: No occurrences.
rg "gemini-pro-vision" -A 5 | grep -v '^ *//'

Length of output: 492

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: 17

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 6f70750 and 3a1a02e.

Files selected for processing (6)
  • docs/faq-cn.md (2 hunks)
  • docs/faq-en.md (4 hunks)
  • docs/faq-es.md (2 hunks)
  • docs/faq-ja.md (1 hunks)
  • docs/faq-ko.md (2 hunks)
  • docs/vercel-en.md (1 hunks)
Files skipped from review due to trivial changes (1)
  • docs/faq-cn.md
Additional context used
LanguageTool
docs/vercel-en.md

[typographical] ~24-~24: The word “otherwise” is an adverb that can’t be used like a conjunction, and therefore needs to be separated from the sentence.
Context: ... sure you have added the "OPENAI_API_KEY", otherwise it will not work. 6. Click "Deploy", th...

(THUS_SENTENCE)

docs/faq-ja.md

[uncategorized] ~117-~117: 「ことができる」という表現は冗長な可能性があります。
Context: ...のエラーが発生する可能性があります。コンパイル時にチャンクコンパイルを無効にすることができます。 Vercel プラットフォームの場合、環境変数に `DISABLE_C...

(DOUSI_KOTOGADEKIRU)


[uncategorized] ~148-~148: 「ことができる」という表現は冗長な可能性があります。
Context: ...ロスが多いなど)、CDN(Cloudflare などのプロバイダー)の使用を試みることができます。 - 中国国内のサーバープロバイダー:Alibaba Cloud、Ten...

(DOUSI_KOTOGADEKIRU)

docs/faq-en.md

[uncategorized] ~67-~67: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short).
Context: ... resolved correctly? ## What is a proxy and how do I use it? Due to OpenAI's IP re...

(COMMA_COMPOUND_SENTENCE_2)


[style] ~99-~99: This phrasing could be wordy, so try replacing it with something more concise.
Context: ...tem called temperature. If this value is greater than 1, it may cause the reply to be garbled...

(MORE_THAN_EXCEEDS)


[style] ~110-~110: Consider a shorter alternative to avoid wordiness.
Context: ...rror: Loading CSS chunk xxx failed..." In order to reduce the white screen time on the fir...

(IN_ORDER_TO_PREMIUM)


[uncategorized] ~118-~118: The official spelling of this programming framework is “Next.js”.
Context: ...kcode-splitting-with-webpack4 However, NextJS's compatibility is relatively poor, whi...

(NODE_JS)


[style] ~121-~121: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...rn build` to build during construction. For Docker users, chunk compilation is comp...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[style] ~122-~122: This phrasing can be wordy. For improved clarity, try opting for something more concise.
Context: ...aging, so this feature is not supported for the time being. Note: If you disable this feature, us...

(FOR_THE_TIME_BEING)

docs/faq-es.md

[grammar] ~191-~191: No es apropiado mezclar cifras y letras.
Context: ...---|----|----| |gpt-3.5-turbo|$0.0005 / 1 mil tokens|$0.0015 / 1 mil tokens|16384| |g...

(NUMEROS_NO_LETRAS)


[grammar] ~191-~191: No es apropiado mezclar cifras y letras.
Context: ...-turbo|$0.0005 / 1 mil tokens|$0.0015 / 1 mil tokens|16384| |gpt-4|$0.030 / 1 mil tok...

(NUMEROS_NO_LETRAS)


[grammar] ~192-~192: No es apropiado mezclar cifras y letras.
Context: ...5 / 1 mil tokens|16384| |gpt-4|$0.030 / 1 mil tokens|$0.060 / 1 mil tokens|8192| |gpt...

(NUMEROS_NO_LETRAS)


[grammar] ~192-~192: No es apropiado mezclar cifras y letras.
Context: ...| |gpt-4|$0.030 / 1 mil tokens|$0.060 / 1 mil tokens|8192| |gpt-4-turbo|$0.010 / 1 mi...

(NUMEROS_NO_LETRAS)


[grammar] ~193-~193: No es apropiado mezclar cifras y letras.
Context: ... mil tokens|8192| |gpt-4-turbo|$0.010 / 1 mil tokens|$0.030 / 1 mil tokens|128000| |g...

(NUMEROS_NO_LETRAS)


[grammar] ~193-~193: No es apropiado mezclar cifras y letras.
Context: ...-4-turbo|$0.010 / 1 mil tokens|$0.030 / 1 mil tokens|128000| |gpt-4o|$0.005 / 1 mil t...

(NUMEROS_NO_LETRAS)


[grammar] ~194-~194: No es apropiado mezclar cifras y letras.
Context: .../ 1 mil tokens|128000| |gpt-4o|$0.005 / 1 mil tokens|$0.015 / 1 mil tokens|128000|

(NUMEROS_NO_LETRAS)


[grammar] ~194-~194: No es apropiado mezclar cifras y letras.
Context: ... |gpt-4o|$0.005 / 1 mil tokens|$0.015 / 1 mil tokens|128000|

(NUMEROS_NO_LETRAS)

Markdownlint
docs/faq-ja.md

10-10: null
Bare URL used

(MD034, no-bare-urls)


83-83: null
Bare URL used

(MD034, no-bare-urls)


112-112: null
Bare URL used

(MD034, no-bare-urls)


113-113: null
Bare URL used

(MD034, no-bare-urls)


114-114: null
Bare URL used

(MD034, no-bare-urls)


115-115: null
Bare URL used

(MD034, no-bare-urls)


176-176: null
Bare URL used

(MD034, no-bare-urls)


209-209: null
Bare URL used

(MD034, no-bare-urls)


44-44: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

docs/faq-en.md

10-10: null
Bare URL used

(MD034, no-bare-urls)


84-84: null
Bare URL used

(MD034, no-bare-urls)


113-113: null
Bare URL used

(MD034, no-bare-urls)


114-114: null
Bare URL used

(MD034, no-bare-urls)


115-115: null
Bare URL used

(MD034, no-bare-urls)


116-116: null
Bare URL used

(MD034, no-bare-urls)

Additional comments not posted (2)
docs/faq-en.md (1)

194-199: Correct token pricing table formatting.

Ensure the token pricing table is formatted correctly for readability.

-  | Model | User input (Prompt) billing | Model output (Completion) billing | Maximum number of tokens per interaction |
-  |----|----|----|----|
-  | gpt-3.5-turbo | $0.0005 / 1 thousand tokens | $0.0015 / 1 thousand tokens | 16384 |
-  | gpt-4 | $0.030 / 1 thousand tokens | $0.060 / 1 thousand tokens | 8192 |
-  | gpt-4-turbo | $0.010 / 1 thousand tokens | $0.030 / 1 thousand tokens | 128000 |
-  | gpt-4o | $0.005 / 1 thousand tokens | $0.015 / 1 thousand tokens | 128000 |
+ | Model | User input (Prompt) billing | Model output (Completion) billing | Maximum number of tokens per interaction |
+ | ---- | ---- | ---- | ---- |
+ | gpt-3.5-turbo | $0.0005 / 1 thousand tokens | $0.0015 / 1 thousand tokens | 16384 |
+ | gpt-4 | $0.030 / 1 thousand tokens | $0.060 / 1 thousand tokens | 8192 |
+ | gpt-4-turbo | $0.010 / 1 thousand tokens | $0.030 / 1 thousand tokens | 128000 |
+ | gpt-4o | $0.005 / 1 thousand tokens | $0.015 / 1 thousand tokens | 128000 |

Likely invalid or redundant comment.

docs/faq-es.md (1)

193-193: Correct the grammatical issue in the token pricing table.

The static analysis tool flagged an issue with mixing numbers and letters. To maintain consistency and readability, use either all words or all numbers.

- |gpt-4-turbo|$0.010 / 1 mil tokens|$0.030 / 1 mil tokens|128000|
+ |gpt-4-turbo|$0.010 / 1k tokens|$0.030 / 1k tokens|128000|

Likely invalid or redundant comment.

Tools
LanguageTool

[grammar] ~193-~193: No es apropiado mezclar cifras y letras.
Context: ... mil tokens|8192| |gpt-4-turbo|$0.010 / 1 mil tokens|$0.030 / 1 mil tokens|128000| |g...

(NUMEROS_NO_LETRAS)


[grammar] ~193-~193: No es apropiado mezclar cifras y letras.
Context: ...-4-turbo|$0.010 / 1 mil tokens|$0.030 / 1 mil tokens|128000| |gpt-4o|$0.005 / 1 mil t...

(NUMEROS_NO_LETRAS)

docs/faq-es.md Outdated

* GPT-3.5-Turbo es el último modelo y se actualiza constantemente.
* GPT-3.5-turbo-0301 es una instantánea del modelo congelada el 1 de marzo, no cambiará y se espera que sea reemplazada por una nueva instantánea en 3 meses.
|gpt-3.5-turbo|$0.0005 / 1 mil tokens|$0.0015 / 1 mil tokens|16384|
Copy link
Contributor

Choose a reason for hiding this comment

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

Correct the grammatical issue in the token pricing table.

The static analysis tool flagged an issue with mixing numbers and letters. To maintain consistency and readability, use either all words or all numbers.

- |gpt-3.5-turbo|$0.0005 / 1 mil tokens|$0.0015 / 1 mil tokens|16384|
+ |gpt-3.5-turbo|$0.0005 / 1k tokens|$0.0015 / 1k tokens|16384|
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
|gpt-3.5-turbo|$0.0005 / 1 mil tokens|$0.0015 / 1 mil tokens|16384|
|gpt-3.5-turbo|$0.0005 / 1k tokens|$0.0015 / 1k tokens|16384|
Tools
LanguageTool

[grammar] ~191-~191: No es apropiado mezclar cifras y letras.
Context: ...---|----|----| |gpt-3.5-turbo|$0.0005 / 1 mil tokens|$0.0015 / 1 mil tokens|16384| |g...

(NUMEROS_NO_LETRAS)


[grammar] ~191-~191: No es apropiado mezclar cifras y letras.
Context: ...-turbo|$0.0005 / 1 mil tokens|$0.0015 / 1 mil tokens|16384| |gpt-4|$0.030 / 1 mil tok...

(NUMEROS_NO_LETRAS)

docs/faq-es.md Outdated
* GPT-3.5-Turbo es el último modelo y se actualiza constantemente.
* GPT-3.5-turbo-0301 es una instantánea del modelo congelada el 1 de marzo, no cambiará y se espera que sea reemplazada por una nueva instantánea en 3 meses.
|gpt-3.5-turbo|$0.0005 / 1 mil tokens|$0.0015 / 1 mil tokens|16384|
|gpt-4|$0.030 / 1 mil tokens|$0.060 / 1 mil tokens|8192|
Copy link
Contributor

Choose a reason for hiding this comment

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

Correct the grammatical issue in the token pricing table.

The static analysis tool flagged an issue with mixing numbers and letters. To maintain consistency and readability, use either all words or all numbers.

- |gpt-4|$0.030 / 1 mil tokens|$0.060 / 1 mil tokens|8192|
+ |gpt-4|$0.030 / 1k tokens|$0.060 / 1k tokens|8192|
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
|gpt-4|$0.030 / 1 mil tokens|$0.060 / 1 mil tokens|8192|
|gpt-4|$0.030 / 1k tokens|$0.060 / 1k tokens|8192|
Tools
LanguageTool

[grammar] ~192-~192: No es apropiado mezclar cifras y letras.
Context: ...5 / 1 mil tokens|16384| |gpt-4|$0.030 / 1 mil tokens|$0.060 / 1 mil tokens|8192| |gpt...

(NUMEROS_NO_LETRAS)


[grammar] ~192-~192: No es apropiado mezclar cifras y letras.
Context: ...| |gpt-4|$0.030 / 1 mil tokens|$0.060 / 1 mil tokens|8192| |gpt-4-turbo|$0.010 / 1 mi...

(NUMEROS_NO_LETRAS)

docs/faq-es.md Outdated
|gpt-3.5-turbo|$0.0005 / 1 mil tokens|$0.0015 / 1 mil tokens|16384|
|gpt-4|$0.030 / 1 mil tokens|$0.060 / 1 mil tokens|8192|
|gpt-4-turbo|$0.010 / 1 mil tokens|$0.030 / 1 mil tokens|128000|
|gpt-4o|$0.005 / 1 mil tokens|$0.015 / 1 mil tokens|128000|
Copy link
Contributor

Choose a reason for hiding this comment

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

Correct the grammatical issue in the token pricing table.

The static analysis tool flagged an issue with mixing numbers and letters. To maintain consistency and readability, use either all words or all numbers.

- |gpt-4o|$0.005 / 1 mil tokens|$0.015 / 1 mil tokens|128000|
+ |gpt-4o|$0.005 / 1k tokens|$0.015 / 1k tokens|128000|
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
|gpt-4o|$0.005 / 1 mil tokens|$0.015 / 1 mil tokens|128000|
|gpt-4o|$0.005 / 1k tokens|$0.015 / 1k tokens|128000|
Tools
LanguageTool

[grammar] ~194-~194: No es apropiado mezclar cifras y letras.
Context: .../ 1 mil tokens|128000| |gpt-4o|$0.005 / 1 mil tokens|$0.015 / 1 mil tokens|128000|

(NUMEROS_NO_LETRAS)


[grammar] ~194-~194: No es apropiado mezclar cifras y letras.
Context: ... |gpt-4o|$0.005 / 1 mil tokens|$0.015 / 1 mil tokens|128000|

(NUMEROS_NO_LETRAS)

2. Add environment variables named "OPENAI_API_KEY" and "CODE" ([Access Password](https://github.com/Yidadaa/ChatGPT-Next-Web/blob/357296986609c14de10bf210871d30e2f67a8784/docs/faq-cn.md#%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F-code-%E6%98%AF%E4%BB%80%E4%B9%88%E5%BF%85%E9%A1%BB%E8%AE%BE%E7%BD%AE%E5%90%97)) respectively.
3. Fill in the corresponding values for the environment variables.
4. Click "Add" to confirm adding the environment variables.
5. Make sure you have added the "OPENAI_API_KEY", otherwise it will not work.
Copy link
Contributor

Choose a reason for hiding this comment

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

Improve sentence structure.

The word "otherwise" should be separated from the sentence to improve readability.

- Make sure you have added the "OPENAI_API_KEY", otherwise it will not work.
+ Make sure you have added the "OPENAI_API_KEY". Otherwise, it will not work.
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
5. Make sure you have added the "OPENAI_API_KEY", otherwise it will not work.
5. Make sure you have added the "OPENAI_API_KEY". Otherwise, it will not work.
Tools
LanguageTool

[typographical] ~24-~24: The word “otherwise” is an adverb that can’t be used like a conjunction, and therefore needs to be separated from the sentence.
Context: ... sure you have added the "OPENAI_API_KEY", otherwise it will not work. 6. Click "Deploy", th...

(THUS_SENTENCE)

docs/faq-ko.md Outdated
Comment on lines 214 to 217
|gpt-4|$0.030 / 1천 토큰|$0.060 / 1천 토큰|8192|
|gpt-4-turbo|$0.010 / 1천 토큰|$0.030 / 1천 토큰|128000|
|gpt-4o|$0.005 / 1천 토큰|$0.015 / 1천 토큰|128000|
Copy link
Contributor

Choose a reason for hiding this comment

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

Correct token pricing table formatting.

Ensure the token pricing table is formatted correctly for readability.

-  |gpt-3.5-turbo|$0.0005 / 1천 토큰|$0.0015 / 1천 토큰|16384|
-  |gpt-4|$0.030 / 1천 토큰|$0.060 / 1천 토큰|8192|
-  |gpt-4-turbo|$0.010 / 1천 토큰|$0.030 / 1천 토큰|128000|
-  |gpt-4o|$0.005 / 1천 토큰|$0.015 / 1천 토큰|128000|
+ | gpt-3.5-turbo | $0.0005 / 1천 토큰 | $0.0015 / 1천 토큰 | 16384 |
+ | gpt-4 | $0.030 / 1천 토큰 | $0.060 / 1천 토큰 | 8192 |
+ | gpt-4-turbo | $0.010 / 1천 토큰 | $0.030 / 1천 토큰 | 128000 |
+ | gpt-4o | $0.005 / 1천 토큰 | $0.015 / 1천 토큰 | 128000 |
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
|gpt-3.5-turbo|$0.0005 / 1천 토큰|$0.0015 / 1천 토큰|16384|
|gpt-4|$0.030 / 1천 토큰|$0.060 / 1천 토큰|8192|
|gpt-4-turbo|$0.010 / 1천 토큰|$0.030 / 1천 토큰|128000|
|gpt-4o|$0.005 / 1천 토큰|$0.015 / 1천 토큰|128000|
| gpt-3.5-turbo | $0.0005 / 1천 토큰 | $0.0015 / 1천 토큰 | 16384 |
| gpt-4 | $0.030 / 1천 토큰 | $0.060 / 1천 토큰 | 8192 |
| gpt-4-turbo | $0.010 / 1천 토큰 | $0.030 / 1천 토큰 | 128000 |
| gpt-4o | $0.005 / 1천 토큰 | $0.015 / 1천 토큰 | 128000 |

docs/faq-en.md Outdated

- Forward proxy example: VPN ladder. In the case of docker deployment, set the environment variable HTTP_PROXY to your proxy address (http://address:port).
- Reverse proxy example: You can use someone else's proxy address or set it up for free through Cloudflare. Set the project environment variable BASE_URL to your proxy address.
However, NextJS's compatibility is relatively poor, which can cause this error on older browsers. You can turn off chunk compilation during compilation.
Copy link
Contributor

Choose a reason for hiding this comment

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

Use official spelling.

The official spelling of this framework is "Next.js".

- However, NextJS's compatibility is relatively poor, which can cause this error on older browsers.
+ However, Next.js's compatibility is relatively poor, which can cause this error on older browsers.
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
However, NextJS's compatibility is relatively poor, which can cause this error on older browsers. You can turn off chunk compilation during compilation.
However, Next.js's compatibility is relatively poor, which can cause this error on older browsers.
Tools
LanguageTool

[uncategorized] ~118-~118: The official spelling of this programming framework is “Next.js”.
Context: ...kcode-splitting-with-webpack4 However, NextJS's compatibility is relatively poor, whi...

(NODE_JS)

docs/faq-en.md Outdated
For Vercel platform, you can add `DISABLE_CHUNK=1` to the environment variables and redeploy.
For self-deployed projects, you can use `DISABLE_CHUNK=1 yarn build` during the build process.
For Docker users, as the build is already completed during packaging, disabling this feature is currently not supported.
See discussion: https://github.com/Yidadaa/ChatGPT-Next-Web/issues/1569
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix bare URL issue.

The bare URL should be formatted properly to avoid markdownlint warnings.

- See discussion: https://github.com/Yidadaa/ChatGPT-Next-Web/issues/1569
+ See discussion: [link](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/1569)
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
See discussion: https://github.com/Yidadaa/ChatGPT-Next-Web/issues/1569
See discussion: [link](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/1569)
Tools
Markdownlint

84-84: null
Bare URL used

(MD034, no-bare-urls)

docs/faq-en.md Outdated
@@ -7,6 +7,8 @@

# Deployment Related Questions

For detailed tutorials on various deployment methods, please refer to: https://rptzik3toh.feishu.cn/docx/XtrdduHwXoSCGIxeFLlcEPsdn8b
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix bare URL issue.

The bare URL should be formatted properly to avoid markdownlint warnings.

- For detailed tutorials on various deployment methods, please refer to: https://rptzik3toh.feishu.cn/docx/XtrdduHwXoSCGIxeFLlcEPsdn8b
+ For detailed tutorials on various deployment methods, please refer to: [link](https://rptzik3toh.feishu.cn/docx/XtrdduHwXoSCGIxeFLlcEPsdn8b)
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
For detailed tutorials on various deployment methods, please refer to: https://rptzik3toh.feishu.cn/docx/XtrdduHwXoSCGIxeFLlcEPsdn8b
For detailed tutorials on various deployment methods, please refer to: [link](https://rptzik3toh.feishu.cn/docx/XtrdduHwXoSCGIxeFLlcEPsdn8b)
Tools
Markdownlint

10-10: null
Bare URL used

(MD034, no-bare-urls)


## Can I deploy it on a server in China?
For the Vercel platform, add `DISABLE_CHUNK=1` to the environment variables and redeploy.
For self-compiled deployment projects, use `DISABLE_CHUNK=1 yarn build` to build during construction.
Copy link
Contributor

Choose a reason for hiding this comment

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

Avoid repetition.

Reword the sentence to avoid repetition at the beginning of successive sentences.

- For self-compiled deployment projects, use `DISABLE_CHUNK=1 yarn build` to build during construction.
- For Docker users, chunk compilation is completed during Docker packaging, so this feature is not supported for the time being.
+ For self-compiled deployment projects, build using `DISABLE_CHUNK=1 yarn build`.
+ Docker users cannot disable this feature as chunk compilation is completed during Docker packaging.
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
For self-compiled deployment projects, use `DISABLE_CHUNK=1 yarn build` to build during construction.
For self-compiled deployment projects, build using `DISABLE_CHUNK=1 yarn build`.
Docker users cannot disable this feature as chunk compilation is completed during Docker packaging.
Tools
LanguageTool

[style] ~121-~121: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...rn build` to build during construction. For Docker users, chunk compilation is comp...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

docs/faq-en.md Outdated
Comment on lines 113 to 116
- https://nextjs.org/docs/app/building-your-application/optimizing/lazy-loading
- https://stackoverflow.com/questions/55993890/how-can-i-disable-chunkcode-splitting-with-webpack4
- https://github.com/vercel/next.js/issues/38507
- https://stackoverflow.com/questions/55993890/how-can-i-disable-chunkcode-splitting-with-webpack4
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix bare URL issues.

The bare URLs should be formatted properly to avoid markdownlint warnings.

- https://nextjs.org/docs/app/building-your-application/optimizing/lazy-loading
- https://stackoverflow.com/questions/55993890/how-can-i-disable-chunkcode-splitting-with-webpack4
- https://github.com/vercel/next.js/issues/38507
- https://stackoverflow.com/questions/55993890/how-can-i-disable-chunkcode-splitting-with-webpack4
+ [Next.js Lazy Loading](https://nextjs.org/docs/app/building-your-application/optimizing/lazy-loading)
+ [Stack Overflow: Disable Chunk Code Splitting](https://stackoverflow.com/questions/55993890/how-can-i-disable-chunkcode-splitting-with-webpack4)
+ [Vercel Issue 38507](https://github.com/vercel/next.js/issues/38507)
+ [Stack Overflow: Disable Chunk Code Splitting](https://stackoverflow.com/questions/55993890/how-can-i-disable-chunkcode-splitting-with-webpack4)
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- https://nextjs.org/docs/app/building-your-application/optimizing/lazy-loading
- https://stackoverflow.com/questions/55993890/how-can-i-disable-chunkcode-splitting-with-webpack4
- https://github.com/vercel/next.js/issues/38507
- https://stackoverflow.com/questions/55993890/how-can-i-disable-chunkcode-splitting-with-webpack4
[Next.js Lazy Loading](https://nextjs.org/docs/app/building-your-application/optimizing/lazy-loading)
[Stack Overflow: Disable Chunk Code Splitting](https://stackoverflow.com/questions/55993890/how-can-i-disable-chunkcode-splitting-with-webpack4)
[Vercel Issue 38507](https://github.com/vercel/next.js/issues/38507)
[Stack Overflow: Disable Chunk Code Splitting](https://stackoverflow.com/questions/55993890/how-can-i-disable-chunkcode-splitting-with-webpack4)
Tools
Markdownlint

113-113: null
Bare URL used

(MD034, no-bare-urls)


114-114: null
Bare URL used

(MD034, no-bare-urls)


115-115: null
Bare URL used

(MD034, no-bare-urls)


116-116: null
Bare URL used

(MD034, no-bare-urls)

@lloydzhou lloydzhou requested a review from Dogtiti July 12, 2024 11:20
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 (5)
docs/faq-ja.md (3)

10-10: Fix bare URL issue.

The bare URL should be formatted properly to avoid markdownlint warnings.

- さまざまなデプロイ方法の詳細なチュートリアルについては、以下を参照してください。[リンク](https://rptzik3toh.feishu.cn/docx/XtrdduHwXoSCGIxeFLlcEPsdn8b)  
+ さまざまなデプロイ方法の詳細なチュートリアルについては、以下を参照してください。[リンク](https://rptzik3toh.feishu.cn/docx/XtrdduHwXoSCGIxeFLlcEPsdn8b)

45-51: Add language specifier to fenced code block.

The fenced code block should have a language specified to avoid markdownlint warnings.

- ```
+ ```nginx

83-83: Fix bare URL issue.

The bare URL should be formatted properly to avoid markdownlint warnings.

- 詳細については、次の議論を参照してください。[リンク](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/1569) 
+ 詳細については、次の議論を参照してください。[リンク](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/1569)
docs/faq-en.md (2)

10-10: Fix bare URL issue.

The bare URL should be formatted properly to avoid markdownlint warnings.

- For detailed tutorials on various deployment methods, please refer to: [link](https://rptzik3toh.feishu.cn/docx/XtrdduHwXoSCGIxeFLlcEPsdn8b)  
+ For detailed tutorials on various deployment methods, please refer to: [link](https://rptzik3toh.feishu.cn/docx/XtrdduHwXoSCGIxeFLlcEPsdn8b)

67-67: Add a comma before 'and'.

Use a comma before ‘and’ if it connects two independent clauses.

- Is the domain name resolved correctly?
+ Is the domain name resolved correctly?,
Tools
LanguageTool

[uncategorized] ~67-~67: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short).
Context: ... resolved correctly? ## What is a proxy and how do I use it? Due to OpenAI's IP re...

(COMMA_COMPOUND_SENTENCE_2)

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 3a1a02e and f9b2815.

Files selected for processing (6)
  • docs/faq-cn.md (3 hunks)
  • docs/faq-en.md (4 hunks)
  • docs/faq-es.md (2 hunks)
  • docs/faq-ja.md (1 hunks)
  • docs/faq-ko.md (3 hunks)
  • docs/vercel-en.md (1 hunks)
Files not summarized due to errors (1)
  • docs/faq-ja.md: Error: Message exceeds token limit
Files skipped from review as they are similar to previous changes (4)
  • docs/faq-cn.md
  • docs/faq-es.md
  • docs/faq-ko.md
  • docs/vercel-en.md
Additional context used
Markdownlint
docs/faq-ja.md

44-44: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

LanguageTool
docs/faq-en.md

[uncategorized] ~67-~67: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short).
Context: ... resolved correctly? ## What is a proxy and how do I use it? Due to OpenAI's IP re...

(COMMA_COMPOUND_SENTENCE_2)


[style] ~99-~99: This phrasing could be wordy, so try replacing it with something more concise.
Context: ...tem called temperature. If this value is greater than 1, it may cause the reply to be garbled...

(MORE_THAN_EXCEEDS)


[style] ~110-~110: Consider a shorter alternative to avoid wordiness.
Context: ...rror: Loading CSS chunk xxx failed..." In order to reduce the white screen time on the fir...

(IN_ORDER_TO_PREMIUM)


[style] ~121-~121: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...rn build` to build during construction. For Docker users, chunk compilation is comp...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[style] ~122-~122: This phrasing can be wordy. For improved clarity, try opting for something more concise.
Context: ...aging, so this feature is not supported for the time being. Note: If you disable this feature, us...

(FOR_THE_TIME_BEING)

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: 3

Outside diff range, codebase verification and nitpick comments (3)
docs/faq-ja.md (2)

10-10: Enhance link text for better readability.

The link text should be more descriptive to provide better context.

- さまざまなデプロイ方法の詳細なチュートリアルについては、以下を参照してください。[link](https://rptzik3toh.feishu.cn/docx/XtrdduHwXoSCGIxeFLlcEPsdn8b)  
+ さまざまなデプロイ方法の詳細なチュートリアルについては、以下を参照してください。[デプロイ方法のチュートリアル](https://rptzik3toh.feishu.cn/docx/XtrdduHwXoSCGIxeFLlcEPsdn8b)

16-21: Replace "escalera" with "proxy".

The term "escalera" is not commonly used in this context. Use "proxy" instead for clarity.

- 3.  Cree un nuevo proyecto en Vercel, seleccione el proyecto que bifurcó en Github, complete las variables de entorno según sea necesario e inicie la implementación. Después de la implementación, puede acceder a su proyecto a través del nombre de dominio proporcionado por Vercel con una escalera.
+ 3.  Cree un nuevo proyecto en Vercel, seleccione el proyecto que bifurcó en Github, complete las variables de entorno según sea necesario e inicie la implementación. Después de la implementación, puede acceder a su proyecto a través del nombre de dominio proporcionado por Vercel con un proxy.
docs/faq-es.md (1)

83-83: Enhance link text for better readability.

The link text should be more descriptive to provide better context.

- Ver Discusión: [link](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/1569) para más detalles
+ Ver Discusión: [detalles del error de red de Docker](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/1569) para más detalles
Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between f9b2815 and fbc44f8.

Files selected for processing (4)
  • docs/faq-cn.md (5 hunks)
  • docs/faq-es.md (6 hunks)
  • docs/faq-ja.md (1 hunks)
  • docs/faq-ko.md (6 hunks)
Files skipped from review as they are similar to previous changes (2)
  • docs/faq-cn.md
  • docs/faq-ko.md
Additional context used
Markdownlint
docs/faq-ja.md

44-44: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

docs/faq-es.md

44-44: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


112-112: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


113-113: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


114-114: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


115-115: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)

LanguageTool
docs/faq-es.md

[typographical] ~10-~10: Símbolo desparejado: Parece que falta un ‘]’.
Context: ... para varios métodos de implementación: [link](https://rptzik3toh.feishu.cn/docx/...

(ES_UNPAIRED_BRACKETS)


[typographical] ~36-~36: Símbolo desparejado: Parece que falta un ‘]’.
Context: ...configuración antes de poder usarla. Ver[Instrucciones relacionadas](https://gith...

(ES_UNPAIRED_BRACKETS)


[typographical] ~40-~40: Símbolo desparejado: Parece que falta un ‘]’.
Context: ...ite respuestas? > Debates relacionados:[#386](https://github.com/Yidadaa/ChatGPT...

(ES_UNPAIRED_BRACKETS)


[uncategorized] ~121-~121: Como locución causal, se escribe con coma.
Context: ... de Docker, esta opción no es compatible ya que el empaquetado Docker incluye la compil...

(YA_QUE)

Additional comments not posted (6)
docs/faq-ja.md (3)

3-6: Approved: New section for obtaining help quickly.

The new section provides clear steps for obtaining help quickly.


12-14: Approved: FAQ about Docker deployment version updates.

The explanation about Docker version updates is clear and informative.


36-36: Fix missing closing bracket.

There is a missing closing bracket in the link text.

- Ver[Instrucciones relacionadas](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/README.md#access-password)
+ Ver [Instrucciones relacionadas](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/README.md#access-password)

Likely invalid or redundant comment.

docs/faq-es.md (3)

214-217: Approved: Updated pricing information for OpenAI models.

The updated pricing information is correct and clear.


10-10: Fix missing closing bracket.

There is a missing closing bracket in the link text.

- Referencia tutorial detallada para varios métodos de implementación: [link](https://rptzik3toh.feishu.cn/docx/XtrdduHwXoSCGIxeFLlcEPsdn8b)
+ Referencia tutorial detallada para varios métodos de implementación: [link](https://rptzik3toh.feishu.cn/docx/XtrdduHwXoSCGIxeFLlcEPsdn8b)]

Likely invalid or redundant comment.

Tools
LanguageTool

[typographical] ~10-~10: Símbolo desparejado: Parece que falta un ‘]’.
Context: ... para varios métodos de implementación: [link](https://rptzik3toh.feishu.cn/docx/...

(ES_UNPAIRED_BRACKETS)


36-36: Fix missing closing bracket.

There is a missing closing bracket in the link text.

- Ver[Instrucciones relacionadas](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/README.md#access-password)
+ Ver [Instrucciones relacionadas](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/README.md#access-password)

Likely invalid or redundant comment.

Tools
LanguageTool

[typographical] ~36-~36: Símbolo desparejado: Parece que falta un ‘]’.
Context: ...configuración antes de poder usarla. Ver[Instrucciones relacionadas](https://gith...

(ES_UNPAIRED_BRACKETS)

Comment on lines +45 to 52
# キャッシュなし、ストリーミング出力のサポート
proxy_cache off; # キャッシュを無効にする
proxy_buffering off; # プロキシバッファリングを無効にする
chunked_transfer_encoding on; # チャンク転送エンコーディングを有効にする
tcp_nopush on; # TCP NOPUSH オプションを有効にする、Nagle アルゴリズムを無効にする
tcp_nodelay on; # TCP NODELAY オプションを有効にする、遅延 ACK アルゴリズムを無効にする
keepalive_timeout 300; # キープアライブタイムアウトを 65 秒に設定する
```
Copy link
Contributor

Choose a reason for hiding this comment

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

Specify language for code block.

The code block should have a language specified for proper syntax highlighting.

- ```
+ ```nginx

@@ -33,21 +33,23 @@
Esta es su contraseña de acceso personalizada, puede elegir:

1. Si no es así, elimine la variable de entorno. Precaución: Cualquier persona puede acceder a tu proyecto en este momento.
2. Cuando implemente el proyecto, establezca la variable de entorno CODE (admite varias comas de contraseña separadas). Después de establecer la contraseña de acceso, debe ingresar la contraseña de acceso en la interfaz de configuración antes de poder usarla. Ver[Instrucciones relacionadas](https://github.com/Yidadaa/ChatGPT-Next-Web/blob/main/README_CN.md#%E9%85%8D%E7%BD%AE%E9%A1%B5%E9%9D%A2%E8%AE%BF%E9%97%AE%E5%AF%86%E7%A0%81)
2. Cuando implemente el proyecto, establezca la variable de entorno CODE (admite varias comas de contraseña separadas). Después de establecer la contraseña de acceso, debe ingresar la contraseña de acceso en la interfaz de configuración antes de poder usarla. Ver[Instrucciones relacionadas](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/README.md#access-password)

## ¿Por qué la versión que implementé no transmite respuestas?

> Debates relacionados:[#386](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/386)
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix missing closing bracket.

There is a missing closing bracket in the link text.

- > Debates relacionados:[#386](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/386)
+ > Debates relacionados: [#386](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/386)
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
> Debates relacionados:[#386](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/386)
> Debates relacionados: [#386](https://github.com/Yidadaa/ChatGPT-Next-Web/issues/386)
Tools
LanguageTool

[typographical] ~40-~40: Símbolo desparejado: Parece que falta un ‘]’.
Context: ...ite respuestas? > Debates relacionados:[#386](https://github.com/Yidadaa/ChatGPT...

(ES_UNPAIRED_BRACKETS)

@Dogtiti
Copy link
Member

Dogtiti commented Jul 15, 2024

@RubuJam 有没有什么方式让我能快速确认这些弃用的模型,因为现在接入了很多不同厂商模型,后期可能工作量比较大

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


@RubuJam Is there any way for me to quickly confirm these deprecated models? Because now many models from different manufacturers are connected, the workload may be relatively heavy in the future.

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 (3)
app/constant.ts (3)

Issues found: References to the removed dates still exist in the codebase.

The following references to the dates 2023-04 and 2023-12 were found in app/constant.ts:

  • "gpt-4-turbo": "2023-12"
  • "gpt-4-turbo-2024-04-09": "2023-12"
  • "gpt-4-turbo-preview": "2023-12"
  • "gemini-pro": "2023-12"

Please review and ensure that all references to the removed dates are properly addressed.

Analysis chain

Line range hint 77-77:
LGTM! But verify the references to removed dates.

The removal of dates associated with "gpt-4-vision-preview" and "gemini-pro-vision" aligns with the PR objectives.

However, ensure that these dates are not referenced elsewhere in the codebase.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that the removed dates are not referenced elsewhere in the codebase.

# Test: Search for references to removed dates. Expect: No occurrences.
rg --type python -e '2023-04' -e '2023-12'

Length of output: 71


Script:

#!/bin/bash
# Description: Verify that the removed dates are not referenced elsewhere in the codebase.

# Test: Search for references to removed dates. Expect: No occurrences.
rg -e '2023-04' -e '2023-12'

Length of output: 220


Remove deprecated model reference in app/client/platforms/google.ts

The reference to "gemini-pro-vision" still exists in a commented-out section of app/client/platforms/google.ts. This should be removed to fully align with the PR objectives of removing the deprecated model.

  • app/client/platforms/google.ts: Remove the commented-out lines referencing "gemini-pro-vision".
Analysis chain

Line range hint 96-96:
LGTM! But verify the references to removed models.

The removal of "gemini-pro-vision" from googleModels aligns with the PR objectives.

However, ensure that this model is not referenced elsewhere in the codebase.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that the removed models are not referenced elsewhere in the codebase.

# Test: Search for references to removed models. Expect: No occurrences.
rg --type python -e 'gemini-pro-vision'

Length of output: 70


Script:

#!/bin/bash
# Description: Verify that the removed models are not referenced elsewhere in the codebase.

# Test: Search for references to removed models. Expect: No occurrences.
rg --type ts -e 'gemini-pro-vision'

Length of output: 167


Script:

#!/bin/bash
# Description: Verify the context of the reference to the removed model in `app/client/platforms/google.ts`.

# Test: Display the lines around the reference to understand its context.
rg --type ts -A 5 -B 5 'gemini-pro-vision' app/client/platforms/google.ts

Length of output: 443


References to removed models found in app/constant.ts

The models gpt-4-32k and gpt-4-1106-preview are still present in app/constant.ts. Additionally, they are mentioned in the README files, which might be for documentation purposes.

  • app/constant.ts: Lines containing gpt-4-32k and gpt-4-1106-preview.

Please ensure these models are completely removed from the codebase if they are deprecated and no longer needed.

Analysis chain

Line range hint 81-81:
LGTM! But verify the references to removed models.

The removal of deprecated models from openaiModels aligns with the PR objectives.

However, ensure that these models are not referenced elsewhere in the codebase.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that the removed models are not referenced elsewhere in the codebase.

# Test: Search for references to removed models. Expect: No occurrences.
rg --type python -e 'gpt-3.5-turbo-0125' -e 'gpt-4-0613' -e 'gpt-4-32k' -e 'gpt-4-32k-0613' -e 'gpt-4-1106-preview'

Length of output: 138


Script:

#!/bin/bash
# Description: Verify that the removed models are not referenced elsewhere in the codebase.

# Test: Search for references to removed models. Expect: No occurrences.
rg -e 'gpt-3.5-turbo-0125' -e 'gpt-4-0613' -e 'gpt-4-32k' -e 'gpt-4-32k-0613' -e 'gpt-4-1106-preview'

Length of output: 578


Script:

#!/bin/bash
# Description: Verify that the removed models are not used in the codebase.

# Test: Search for references to removed models in `app/constant.ts`. Expect: No occurrences.
rg -e 'gpt-3.5-turbo-0125' -e 'gpt-4-0613' -e 'gpt-4-32k' -e 'gpt-4-32k-0613' -e 'gpt-4-1106-preview' app/constant.ts

Length of output: 148


Script:

#!/bin/bash
# Description: Verify that the removed models are not used elsewhere in the codebase.

# Test: Search for references to the removed models across the entire codebase. Expect: No occurrences.
rg -e 'gpt-4-32k' -e 'gpt-4-1106-preview'

Length of output: 524

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between fbc44f8 and 6b41387.

Files selected for processing (1)
  • app/constant.ts (2 hunks)
Additional comments not posted (1)
app/constant.ts (1)

Line range hint 79-79:
LGTM!

The addition of "gemini-pro": "2023-12" to KnowledgeCutOffDate is straightforward and aligns with the PR objectives.

Copy link
Contributor

Your build has completed!

Preview deployment

@RubuJam
Copy link
Contributor Author

RubuJam commented Jul 15, 2024

@Dogtiti 目前几乎没办法

There is almost no way at the moment

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: 5

Outside diff range, codebase verification and nitpick comments (3)
app/constant.ts (3)

Inconsistent model removals found.

The models "gpt-4-32k" and "gpt-4-1106-preview" were not fully removed from the codebase. Please ensure that all references to these models are removed to maintain consistency with the deprecation documentation.

  • app/constant.ts: References to "gpt-4-32k" and "gpt-4-1106-preview".
Analysis chain

Line range hint 112-117:
Verify the consistency of model removals.

Ensure that the removal of models "gpt-3.5-turbo-0125", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0613", and "gpt-4-1106-preview" align with the deprecation documentation.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the consistency of model removals.

# Test: Search for references to the removed models in the codebase. Expect: No references to the removed models.
rg --type python --type ts --type js -A 5 'gpt-3.5-turbo-0125|gpt-4-0613|gpt-4-32k|gpt-4-32k-0613|gpt-4-1106-preview'

Length of output: 150


Script:

#!/bin/bash
# Description: Verify the consistency of model removals.

# Test: Search for references to the removed models in the codebase. Expect: No references to the removed models.
rg --type py --type ts --type js -A 5 'gpt-3.5-turbo-0125|gpt-4-0613|gpt-4-32k|gpt-4-32k-0613|gpt-4-1106-preview'

Length of output: 526


Remove commented-out reference to gemini-pro-vision

The model gemini-pro-vision has been removed from active use, but there is still a commented-out reference to it in the codebase. For consistency, please remove this commented-out reference.

  • app/client/platforms/google.ts:
    //   options.onError?.(new Error("Multiturn chat is not enabled for models/gemini-pro-vision"));
Analysis chain

Line range hint 119-121:
Verify the consistency of model removal.

Ensure that the removal of the model "gemini-pro-vision" aligns with the deprecation documentation.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the consistency of model removal.

# Test: Search for references to the removed model in the codebase. Expect: No references to the removed model.
rg --type python --type ts --type js -A 5 'gemini-pro-vision'

Length of output: 92


Script:

#!/bin/bash
# Description: Verify the consistency of model removal.

# Test: Search for references to the removed model in the codebase. Expect: No references to the removed model.
rg --type ts --type js -A 5 'gemini-pro-vision'

Length of output: 494


Script:

#!/bin/bash
# Description: Verify the consistency of model removal.

# Test: Search for all references to the removed model in the codebase, including comments and documentation. Expect: No active references to the removed model.
rg 'gemini-pro-vision'

Length of output: 154


Ensure complete deprecation of "gpt-4-vision-preview"

The reference to "gpt-4-vision-preview" still exists in app/constant.ts. Please ensure that all references to "gpt-4-vision-preview" are removed to maintain consistency.

  • app/constant.ts: Line containing "gpt-4-vision-preview"

Integration of "gemini-pro"

The integration of "gemini-pro" appears to be correctly implemented with multiple references throughout the codebase.

Analysis chain

Line range hint 108-110:
Verify the consistency of model deprecation and addition.

Ensure that the removal of "gpt-4-vision-preview" and the addition of "gemini-pro" align with the deprecation documentation and new model introductions.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the consistency of model deprecation and addition.

# Test: Search for references to "gpt-4-vision-preview" and "gemini-pro" in the codebase. Expect: No references to "gpt-4-vision-preview" and new references to "gemini-pro".
rg --type python --type ts --type js -A 5 'gpt-4-vision-preview|gemini-pro'

Length of output: 108


Script:

#!/bin/bash
# Description: Verify the consistency of model deprecation and addition.

# Test: Search for references to "gpt-4-vision-preview" and "gemini-pro" in the codebase. Expect: No references to "gpt-4-vision-preview" and new references to "gemini-pro".
rg --type py --type ts --type js -A 5 'gpt-4-vision-preview|gemini-pro'

Length of output: 2584


Script:

#!/bin/bash
# Description: Verify the complete deprecation of "gpt-4-vision-preview" and integration of "gemini-pro".

# Test: Search for references to "gpt-4-vision-preview" in the codebase to ensure it is fully deprecated.
rg --type py --type ts --type js 'gpt-4-vision-preview'

# Test: Search for references to "gemini-pro" in the codebase to confirm its integration.
rg --type py --type ts --type js 'gemini-pro'

Length of output: 747

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 6b41387 and c770dc4.

Files selected for processing (9)
  • app/api/google/[...path]/route.ts (1 hunks)
  • app/constant.ts (2 hunks)
  • app/utils.ts (1 hunks)
  • docs/faq-cn.md (5 hunks)
  • docs/faq-en.md (4 hunks)
  • docs/faq-es.md (6 hunks)
  • docs/faq-ja.md (1 hunks)
  • docs/faq-ko.md (6 hunks)
  • docs/vercel-en.md (1 hunks)
Files skipped from review as they are similar to previous changes (5)
  • app/api/google/[...path]/route.ts
  • app/utils.ts
  • docs/faq-cn.md
  • docs/faq-ko.md
  • docs/vercel-en.md
Additional context used
Markdownlint
docs/faq-ja.md

44-44: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

docs/faq-es.md

44-44: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


112-112: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


113-113: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


114-114: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


115-115: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)

LanguageTool
docs/faq-en.md

[uncategorized] ~67-~67: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short).
Context: ... resolved correctly? ## What is a proxy and how do I use it? Due to OpenAI's IP re...

(COMMA_COMPOUND_SENTENCE_2)


[style] ~99-~99: This phrasing could be wordy, so try replacing it with something more concise.
Context: ...tem called temperature. If this value is greater than 1, it may cause the reply to be garbled...

(MORE_THAN_EXCEEDS)


[style] ~110-~110: Consider a shorter alternative to avoid wordiness.
Context: ...rror: Loading CSS chunk xxx failed..." In order to reduce the white screen time on the fir...

(IN_ORDER_TO_PREMIUM)


[style] ~121-~121: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...rn build` to build during construction. For Docker users, chunk compilation is comp...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[style] ~122-~122: This phrasing can be wordy. For improved clarity, try opting for something more concise.
Context: ...aging, so this feature is not supported for the time being. Note: If you disable this feature, us...

(FOR_THE_TIME_BEING)

docs/faq-es.md

[typographical] ~10-~10: Símbolo desparejado: Parece que falta un ‘]’.
Context: ... para varios métodos de implementación: [link](https://rptzik3toh.feishu.cn/docx/...

(ES_UNPAIRED_BRACKETS)


[typographical] ~36-~36: Símbolo desparejado: Parece que falta un ‘]’.
Context: ...configuración antes de poder usarla. Ver[Instrucciones relacionadas](https://gith...

(ES_UNPAIRED_BRACKETS)


[typographical] ~40-~40: Símbolo desparejado: Parece que falta un ‘]’.
Context: ...ite respuestas? > Debates relacionados:[#386](https://github.com/Yidadaa/ChatGPT...

(ES_UNPAIRED_BRACKETS)


[uncategorized] ~100-~100: Probablemente falta una coma.
Context: ... para evitarlo. ## Al usarlo, aparece "Ahora en un estado no autorizado, ingrese la ...

(AI_ES_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~121-~121: Como locución causal, se escribe con coma.
Context: ... de Docker, esta opción no es compatible ya que el empaquetado Docker incluye la compil...

(YA_QUE)

Additional comments not posted (5)
docs/faq-ja.md (2)

3-3: LGTM! Section title updates are clear and consistent.

The updates to the section titles improve clarity and consistency with the rest of the documentation.


213-216: Verify the accuracy and consistency of billing details.

Ensure that the updated billing details for gpt-3.5-turbo, gpt-4, gpt-4-turbo, and gpt-4o are accurate and consistent with the official pricing documentation.

docs/faq-en.md (1)

196-199: Verify the accuracy and consistency of billing details.

Ensure that the updated billing details for gpt-3.5-turbo, gpt-4, gpt-4-turbo, and gpt-4o are accurate and consistent with the official pricing documentation.

docs/faq-es.md (2)

10-10: Fix missing closing bracket.

There is a missing closing bracket in the link text.

- Referencia tutorial detallada para varios métodos de implementación: [link](https://rptzik3toh.feishu.cn/docx/XtrdduHwXoSCGIxeFLlcEPsdn8b)
+ Referencia tutorial detallada para varios métodos de implementación: [link](https://rptzik3toh.feishu.cn/docx/XtrdduHwXoSCGIxeFLlcEPsdn8b)]

Likely invalid or redundant comment.

Tools
LanguageTool

[typographical] ~10-~10: Símbolo desparejado: Parece que falta un ‘]’.
Context: ... para varios métodos de implementación: [link](https://rptzik3toh.feishu.cn/docx/...

(ES_UNPAIRED_BRACKETS)


98-100: Add missing comma.

The sentence is missing a comma after "para evitarlo".

- para evitarlo.  ## Al usarlo, aparece "Ahora en un estado no autorizado, ingrese la contraseña de acceso en la pantalla de configuración"
+ para evitarlo.  ## Al usarlo, aparece "Ahora en un estado no autorizado, ingrese la contraseña de acceso en la pantalla de configuración"

Likely invalid or redundant comment.

Tools
LanguageTool

[uncategorized] ~100-~100: Probablemente falta una coma.
Context: ... para evitarlo. ## Al usarlo, aparece "Ahora en un estado no autorizado, ingrese la ...

(AI_ES_HYDRA_LEO_MISSING_COMMA)

Comment on lines +44 to +52
```
# Sin caché, soporte para salida en flujo
proxy_cache off; # Desactivar caché
proxy_buffering off; # Desactivar almacenamiento en búfer de proxy
chunked_transfer_encoding on; # Activar codificación de transferencia en bloques
tcp_nopush on; # Activar opción TCP NOPUSH, desactivar el algoritmo Nagle
tcp_nodelay on; # Activar opción TCP NODELAY, desactivar el algoritmo de ACK retardado
keepalive_timeout 300; # Establecer tiempo de espera de keep-alive en 300 segundos
```
Copy link
Contributor

Choose a reason for hiding this comment

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

Specify language for code block.

The code block should have a language specified for proper syntax highlighting.

- ```
+ ```nginx
Tools
Markdownlint

44-44: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


Para la plataforma Vercel, agrega la variable de entorno `DISABLE_CHUNK=1` y vuelve a desplegar;
Para proyectos compilados y desplegados manualmente, usa `DISABLE_CHUNK=1 yarn build` durante la compilación;
Para usuarios de Docker, esta opción no es compatible ya que el empaquetado Docker incluye la compilación.
Copy link
Contributor

Choose a reason for hiding this comment

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

Add missing comma.

The sentence is missing a comma after "ya que".

- ya que el empaquetado Docker incluye la compilación.
+ ya que, el empaquetado Docker incluye la compilación.
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Para usuarios de Docker, esta opción no es compatible ya que el empaquetado Docker incluye la compilación.
Para usuarios de Docker, esta opción no es compatible ya que, el empaquetado Docker incluye la compilación.
Tools
LanguageTool

[uncategorized] ~121-~121: Como locución causal, se escribe con coma.
Context: ... de Docker, esta opción no es compatible ya que el empaquetado Docker incluye la compil...

(YA_QUE)

@@ -33,21 +33,23 @@
Esta es su contraseña de acceso personalizada, puede elegir:

1. Si no es así, elimine la variable de entorno. Precaución: Cualquier persona puede acceder a tu proyecto en este momento.
2. Cuando implemente el proyecto, establezca la variable de entorno CODE (admite varias comas de contraseña separadas). Después de establecer la contraseña de acceso, debe ingresar la contraseña de acceso en la interfaz de configuración antes de poder usarla. Ver[Instrucciones relacionadas](https://github.com/Yidadaa/ChatGPT-Next-Web/blob/main/README_CN.md#%E9%85%8D%E7%BD%AE%E9%A1%B5%E9%9D%A2%E8%AE%BF%E9%97%AE%E5%AF%86%E7%A0%81)
2. Cuando implemente el proyecto, establezca la variable de entorno CODE (admite varias comas de contraseña separadas). Después de establecer la contraseña de acceso, debe ingresar la contraseña de acceso en la interfaz de configuración antes de poder usarla. Ver[Instrucciones relacionadas](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/README.md#access-password)
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix missing closing bracket.

There is a missing closing bracket in the link text.

- Ver[Instrucciones relacionadas](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/README.md#access-password)
+ Ver [Instrucciones relacionadas](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/README.md#access-password)
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
2. Cuando implemente el proyecto, establezca la variable de entorno CODE (admite varias comas de contraseña separadas). Después de establecer la contraseña de acceso, debe ingresar la contraseña de acceso en la interfaz de configuración antes de poder usarla. Ver[Instrucciones relacionadas](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/README.md#access-password)
2. Cuando implemente el proyecto, establezca la variable de entorno CODE (admite varias comas de contraseña separadas). Después de establecer la contraseña de acceso, debe ingresar la contraseña de acceso en la interfaz de configuración antes de poder usarla. Ver [Instrucciones relacionadas](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blob/main/README.md#access-password)
Tools
LanguageTool

[typographical] ~36-~36: Símbolo desparejado: Parece que falta un ‘]’.
Context: ...configuración antes de poder usarla. Ver[Instrucciones relacionadas](https://gith...

(ES_UNPAIRED_BRACKETS)

Comment on lines +214 to +217
|gpt-3.5-turbo|$0.0005 / 1k tokens|$0.0015 / 1k tokens|16384|
|gpt-4|$0.030 / 1k tokens|$0.060 / 1k tokens|8192|
|gpt-4-turbo|$0.010 / 1k tokens|$0.030 / 1k tokens|128000|
|gpt-4o|$0.005 / 1k tokens|$0.015 / 1k tokens|128000|
Copy link
Contributor

Choose a reason for hiding this comment

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

Correct the grammatical issue in the token pricing table.

The static analysis tool flagged an issue with mixing numbers and letters. To maintain consistency and readability, use either all words or all numbers.

- |gpt-3.5-turbo|$0.0005 / 1 mil tokens|$0.0015 / 1 mil tokens|16384|
+ |gpt-3.5-turbo|$0.0005 / 1k tokens|$0.0015 / 1k tokens|16384|
- |gpt-4|$0.030 / 1 mil tokens|$0.060 / 1 mil tokens|8192|
+ |gpt-4|$0.030 / 1k tokens|$0.060 / 1k tokens|8192|
- |gpt-4-turbo|$0.010 / 1 mil tokens|$0.030 / 1 mil tokens|128000|
+ |gpt-4-turbo|$0.010 / 1k tokens|$0.030 / 1k tokens|128000|
- |gpt-4o|$0.005 / 1 mil tokens|$0.015 / 1 mil tokens|128000|
+ |gpt-4o|$0.005 / 1k tokens|$0.015 / 1k tokens|128000|
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
|gpt-3.5-turbo|$0.0005 / 1k tokens|$0.0015 / 1k tokens|16384|
|gpt-4|$0.030 / 1k tokens|$0.060 / 1k tokens|8192|
|gpt-4-turbo|$0.010 / 1k tokens|$0.030 / 1k tokens|128000|
|gpt-4o|$0.005 / 1k tokens|$0.015 / 1k tokens|128000|
|gpt-3.5-turbo|$0.0005 / 1k tokens|$0.0015 / 1k tokens|16384|
|gpt-4|$0.030 / 1k tokens|$0.060 / 1k tokens|8192|
|gpt-4-turbo|$0.010 / 1k tokens|$0.030 / 1k tokens|128000|
|gpt-4o|$0.005 / 1k tokens|$0.015 / 1k tokens|128000|

Comment on lines +112 to +116
- [Next.js Lazy Loading](https://nextjs.org/docs/app/building-your-application/optimizing/lazy-loading)
- [Stack Overflow: Disable Chunk Code Splitting](https://stackoverflow.com/questions/55993890/how-can-i-disable-chunkcode-splitting-with-webpack4)
- [Vercel Issue 38507](https://github.com/vercel/next.js/issues/38507)
- [Stack Overflow: Disable Chunk Code Splitting](https://stackoverflow.com/questions/55993890/how-can-i-disable-chunkcode-splitting-with-webpack4)

Copy link
Contributor

Choose a reason for hiding this comment

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

Fix unordered list style.

The unordered list style is inconsistent. It should use asterisks instead of dashes.

- - [Next.js Lazy Loading](https://nextjs.org/docs/app/building-your-application/optimizing/lazy-loading)
- - [Stack Overflow: Disable Chunk Code Splitting](https://stackoverflow.com/questions/55993890/how-can-i-disable-chunkcode-splitting-with-webpack4)
- - [Vercel Issue 38507](https://github.com/vercel/next.js/issues/38507)
- - [Stack Overflow: Disable Chunk Code Splitting](https://stackoverflow.com/questions/55993890/how-can-i-disable-chunkcode-splitting-with-webpack4)
+ * [Next.js Lazy Loading](https://nextjs.org/docs/app/building-your-application/optimizing/lazy-loading)
+ * [Stack Overflow: Disable Chunk Code Splitting](https://stackoverflow.com/questions/55993890/how-can-i-disable-chunkcode-splitting-with-webpack4)
+ * [Vercel Issue 38507](https://github.com/vercel/next.js/issues/38507)
+ * [Stack Overflow: Disable Chunk Code Splitting](https://stackoverflow.com/questions/55993890/how-can-i-disable-chunkcode-splitting-with-webpack4)
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- [Next.js Lazy Loading](https://nextjs.org/docs/app/building-your-application/optimizing/lazy-loading)
- [Stack Overflow: Disable Chunk Code Splitting](https://stackoverflow.com/questions/55993890/how-can-i-disable-chunkcode-splitting-with-webpack4)
- [Vercel Issue 38507](https://github.com/vercel/next.js/issues/38507)
- [Stack Overflow: Disable Chunk Code Splitting](https://stackoverflow.com/questions/55993890/how-can-i-disable-chunkcode-splitting-with-webpack4)
* [Next.js Lazy Loading](https://nextjs.org/docs/app/building-your-application/optimizing/lazy-loading)
* [Stack Overflow: Disable Chunk Code Splitting](https://stackoverflow.com/questions/55993890/how-can-i-disable-chunkcode-splitting-with-webpack4)
* [Vercel Issue 38507](https://github.com/vercel/next.js/issues/38507)
* [Stack Overflow: Disable Chunk Code Splitting](https://stackoverflow.com/questions/55993890/how-can-i-disable-chunkcode-splitting-with-webpack4)
Tools
Markdownlint

112-112: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


113-113: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


114-114: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


115-115: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)

@Dogtiti
Copy link
Member

Dogtiti commented Jul 17, 2024

@DDMeaqua 有空确认一下这个

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


@DDMeaqua I’ll confirm this when I have time

@DDMeaqua
Copy link
Contributor

@Dogtiti @RubuJam 目前找到的信息,有空可以二次确认一下

代码中改动的模型信息:

OpenAI 官方文档中的弃用部分

正在使用的模型

  • gpt-3.5-turbo-0125
  • gpt-4-0613

即将弃用的模型

  • gpt-4-vision-preview
  • gpt-4-32k-0613

通知:2024年6月6日,我们通知了使用 gpt-4-32k 和 gpt-4-vision-preview 的开发人员,它们将在一年零六个月后被弃用。截至2024年6月17日,只有这些模型的现有用户才能继续使用。

Google Gemini 官方文档中的弃用部分

已经停用的模型

  • Gemini 1.0 Pro Vision
    • 状态:Deprecated
    • 详细说明:gemini-pro-vision 已经停用。

参考文档

@RubuJam
Copy link
Contributor Author

RubuJam commented Jul 18, 2024

@Dogtiti @DDMeaqua
gpt-4-32k-0613gpt-4-32k重复,故删除
gpt-4-0613gpt-4重复,故删除
gpt-3.5-turbo-0125gpt-3.5-turbo重复,故删除

gpt-4-32k-0613 is a duplicate of gpt-4-32k, so it is deleted
gpt-4-0613 is a duplicate of gpt-4, so it is deleted
gpt-3.5-turbo-0125 is a duplicate of gpt-3.5-turbo, so it is deleted

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: 1

Outside diff range, codebase verification and nitpick comments (3)
app/constant.ts (3)

Commented-out code found referencing the removed model.

The identifier gemini-pro-vision was found in a commented-out line in the app/client/platforms/google.ts file. While it does not affect the functionality, it is advisable to remove this commented-out line to maintain code clarity.

  • app/client/platforms/google.ts: // options.onError?.(new Error("Multiturn chat is not enabled for models/gemini-pro-vision"));
Analysis chain

Line range hint 190-192:
LGTM! But verify the impact of removed models.

The removal of the deprecated model is approved.

However, ensure that no other parts of the codebase rely on the removed model.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that no other parts of the codebase rely on the removed model.

# Test: Search for the removed model identifier. Expect: No occurrences.
rg --type python -A 5 $'gemini-pro-vision'

Length of output: 72


Script:

#!/bin/bash
# Description: Verify that no other parts of the codebase rely on the removed model.

# Test: Search for the removed model identifier. Expect: No occurrences.
rg --type ts -A 5 $'gemini-pro-vision'

Length of output: 412


Verify the impact of removed models.

The following files still reference the removed model identifiers:

  • app/constant.ts
  • app/client/platforms/google.ts

Please ensure these references are updated or removed to prevent potential issues.

Analysis chain

Line range hint 162-174:
LGTM! But verify the impact of removed models.

The removal of deprecated models is approved.

However, ensure that no other parts of the codebase rely on the removed models.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that no other parts of the codebase rely on the removed models.

# Test: Search for the removed model identifiers. Expect: No occurrences.
rg --type python -A 5 $'gpt-4-vision-preview|gemini-pro-vision|gpt-3.5-turbo-0125|gpt-4-0613|gpt-4-32k-0613'

Length of output: 140


Script:

#!/bin/bash
# Description: Verify that no other parts of the codebase rely on the removed models.

# Test: Search for the removed model identifiers. Expect: No occurrences.
rg -A 5 'gpt-4-vision-preview|gemini-pro-vision|gpt-3.5-turbo-0125|gpt-4-0613|gpt-4-32k-0613'

Length of output: 674


Action Required: Remove or Update References to Deprecated Models

The following deprecated model identifiers are still present in the codebase and need to be removed or updated:

  • app/constant.ts includes the identifier gpt-4-vision-preview.
  • app/client/platforms/google.ts includes a commented-out reference to gemini-pro-vision.

Please ensure these references are removed or updated to prevent any potential issues.

  • app/constant.ts:

    "gpt-4-vision-preview",
  • app/client/platforms/google.ts:

    // options.onError?.(new Error("Multiturn chat is not enabled for models/gemini-pro-vision"));
Analysis chain

Line range hint 176-188:
LGTM! But verify the impact of removed models.

The removal of deprecated models is approved.

However, ensure that no other parts of the codebase rely on the removed models.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that no other parts of the codebase rely on the removed models.

# Test: Search for the removed model identifiers. Expect: No occurrences.
rg --type python -A 5 $'gpt-4-vision-preview|gemini-pro-vision|gpt-3.5-turbo-0125|gpt-4-0613|gpt-4-32k-0613'

Length of output: 140


Script:

#!/bin/bash
# Description: Verify that no other parts of the codebase rely on the removed models.

# Test: Search for the removed model identifiers. Expect: No occurrences.
rg -A 5 'gpt-4-vision-preview|gemini-pro-vision|gpt-3.5-turbo-0125|gpt-4-0613|gpt-4-32k-0613'

Length of output: 674


Script:

#!/bin/bash
# Description: Extract relevant lines and context where the removed model identifiers are referenced.

# Extract lines from app/constant.ts
rg 'gpt-4-vision-preview|gemini-pro-vision|gpt-3.5-turbo-0125|gpt-4-0613|gpt-4-32k-0613' -A 5 app/constant.ts

# Extract lines from app/client/platforms/google.ts
rg 'gpt-4-vision-preview|gemini-pro-vision|gpt-3.5-turbo-0125|gpt-4-0613|gpt-4-32k-0613' -A 5 app/client/platforms/google.ts

Length of output: 532

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between c770dc4 and 9f3e87a.

Files selected for processing (9)
  • app/api/google/[...path]/route.ts (1 hunks)
  • app/constant.ts (2 hunks)
  • app/utils.ts (1 hunks)
  • docs/faq-cn.md (5 hunks)
  • docs/faq-en.md (4 hunks)
  • docs/faq-es.md (6 hunks)
  • docs/faq-ja.md (1 hunks)
  • docs/faq-ko.md (6 hunks)
  • docs/vercel-en.md (1 hunks)
Additional context used
Markdownlint
docs/faq-ja.md

44-44: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

docs/faq-es.md

44-44: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


112-112: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


113-113: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


114-114: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


115-115: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)

LanguageTool
docs/faq-en.md

[uncategorized] ~67-~67: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short).
Context: ... resolved correctly? ## What is a proxy and how do I use it? Due to OpenAI's IP re...

(COMMA_COMPOUND_SENTENCE_2)


[style] ~99-~99: This phrasing could be wordy, so try replacing it with something more concise.
Context: ...tem called temperature. If this value is greater than 1, it may cause the reply to be garbled...

(MORE_THAN_EXCEEDS)


[style] ~110-~110: Consider a shorter alternative to avoid wordiness.
Context: ...rror: Loading CSS chunk xxx failed..." In order to reduce the white screen time on the fir...

(IN_ORDER_TO_PREMIUM)


[style] ~121-~121: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...rn build` to build during construction. For Docker users, chunk compilation is comp...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[style] ~122-~122: This phrasing can be wordy. For improved clarity, try opting for something more concise.
Context: ...aging, so this feature is not supported for the time being. Note: If you disable this feature, us...

(FOR_THE_TIME_BEING)

docs/faq-es.md

[typographical] ~10-~10: Símbolo desparejado: Parece que falta un ‘]’.
Context: ... para varios métodos de implementación: [link](https://rptzik3toh.feishu.cn/docx/...

(ES_UNPAIRED_BRACKETS)


[typographical] ~36-~36: Símbolo desparejado: Parece que falta un ‘]’.
Context: ...configuración antes de poder usarla. Ver[Instrucciones relacionadas](https://gith...

(ES_UNPAIRED_BRACKETS)


[typographical] ~40-~40: Símbolo desparejado: Parece que falta un ‘]’.
Context: ...ite respuestas? > Debates relacionados:[#386](https://github.com/Yidadaa/ChatGPT...

(ES_UNPAIRED_BRACKETS)


[uncategorized] ~100-~100: Probablemente falta una coma.
Context: ... para evitarlo. ## Al usarlo, aparece "Ahora en un estado no autorizado, ingrese la ...

(AI_ES_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~121-~121: Como locución causal, se escribe con coma.
Context: ... de Docker, esta opción no es compatible ya que el empaquetado Docker incluye la compil...

(YA_QUE)

Additional comments not posted (35)
docs/vercel-en.md (5)

1-2: LGTM!

The introduction to the Vercel usage instructions is clear.


3-26: LGTM!

The instructions for creating a new project on Vercel are clear and well-illustrated.


24-24: Improve sentence structure.

The word "otherwise" should be separated from the sentence to improve readability.

- Make sure you have added the "OPENAI_API_KEY". Otherwise, it will not work.

31-40: LGTM!

The instructions for changing environment variables on Vercel are clear and well-illustrated.


42-48: LGTM!

The instructions for redeploying a project on Vercel are clear and well-illustrated.

app/api/google/[...path]/route.ts (1)

61-64: LGTM!

The comments clarify the constraints and requirements related to the usage of the Gemini API and provide essential context for developers.

docs/faq-cn.md (6)

10-10: LGTM!

The changes enhance the readability and formatting of the section.


12-12: LGTM!

The section provides clear information about Docker deployment updates.


Line range hint 14-14:
LGTM!

The instructions for deploying on Vercel are clear.


Line range hint 22-22:
LGTM!

The instructions for changing environment variables on Vercel are clear.


Line range hint 24-24:
LGTM!

The information about the CODE environment variable is clear.


212-215: LGTM!

The information about API pricing is clear and well-formatted.

app/utils.ts (1)

253-255: LGTM! But verify the function usage in the codebase.

The code changes are approved. The simplified logic should enhance performance by reducing the number of conditions evaluated.

However, ensure that all necessary cases for identifying vision models are still covered by the new logic.

docs/faq-ko.md (3)

10-10: Good update for link consistency.

Updating the link text to "link" improves clarity and consistency.


36-36: Correct link update.

Updating the link for the access password explanation ensures users are directed to the correct documentation.


83-83: Correct link update.

Updating the link for the discussion on network errors ensures users are directed to the correct discussion for resolving network errors.

docs/faq-ja.md (3)

10-10: Good update for link consistency.

Updating the link text to "リンク" improves clarity and consistency.


83-83: Correct link update.

Updating the link for the discussion on network errors ensures users are directed to the correct discussion for resolving network errors.


176-176: Properly formatted URL.

Formatting the bare URL properly avoids markdownlint warnings and improves readability.

docs/faq-en.md (8)

10-10: LGTM!

The URL reference has been changed to a markdown link format, improving readability.


67-74: LGTM!

The section on proxy usage has been restructured for clarity, improving user understanding.

Tools
LanguageTool

[uncategorized] ~67-~67: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short).
Context: ... resolved correctly? ## What is a proxy and how do I use it? Due to OpenAI's IP re...

(COMMA_COMPOUND_SENTENCE_2)


76-80: LGTM!

The section on deploying on a domestic server has been updated for clarity, providing clearer instructions.


82-84: LGTM!

The section on network errors after Docker deployment has been refined for clarity, providing clearer instructions.


86-97: LGTM!

The section on usage-related issues has been reorganized for clarity, improving the organization and clarity of troubleshooting steps.


109-124: LGTM!

The section on CSS chunk loading errors has been updated with clearer instructions and relevant links, providing better troubleshooting guidance.

Tools
LanguageTool

[style] ~110-~110: Consider a shorter alternative to avoid wordiness.
Context: ...rror: Loading CSS chunk xxx failed..." In order to reduce the white screen time on the fir...

(IN_ORDER_TO_PREMIUM)


[style] ~121-~121: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...rn build` to build during construction. For Docker users, chunk compilation is comp...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[style] ~122-~122: This phrasing can be wordy. For improved clarity, try opting for something more concise.
Context: ...aging, so this feature is not supported for the time being. Note: If you disable this feature, us...

(FOR_THE_TIME_BEING)


125-127: LGTM!

A new section addressing issues related to automatic translation features in browsers has been added, providing users with troubleshooting guidance.


194-199: LGTM!

A new table detailing billing for different models has been added, providing users with essential pricing information at a glance.

docs/faq-es.md (8)

10-10: LGTM!

The URL reference has been changed to a markdown link format, improving readability.

Tools
LanguageTool

[typographical] ~10-~10: Símbolo desparejado: Parece que falta un ‘]’.
Context: ... para varios métodos de implementación: [link](https://rptzik3toh.feishu.cn/docx/...

(ES_UNPAIRED_BRACKETS)


Line range hint 67-74:
LGTM!

The section on proxy usage has been restructured for clarity, improving user understanding.

Tools
LanguageTool

[typographical] ~10-~10: Símbolo desparejado: Parece que falta un ‘]’.
Context: ... para varios métodos de implementación: [link](https://rptzik3toh.feishu.cn/docx/...

(ES_UNPAIRED_BRACKETS)


Line range hint 76-80:
LGTM!

The section on deploying on a domestic server has been updated for clarity, providing clearer instructions.


83-84: LGTM!

The section on network errors after Docker deployment has been refined for clarity, providing clearer instructions.


Line range hint 86-97:
LGTM!

The section on usage-related issues has been reorganized for clarity, improving the organization and clarity of troubleshooting steps.

Tools
LanguageTool

[uncategorized] ~100-~100: Probablemente falta una coma.
Context: ... para evitarlo. ## Al usarlo, aparece "Ahora en un estado no autorizado, ingrese la ...

(AI_ES_HYDRA_LEO_MISSING_COMMA)


[uncategorized] ~121-~121: Como locución causal, se escribe con coma.
Context: ... de Docker, esta opción no es compatible ya que el empaquetado Docker incluye la compil...

(YA_QUE)

Markdownlint

112-112: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


113-113: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


114-114: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


115-115: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


109-124: LGTM!

The section on CSS chunk loading errors has been updated with clearer instructions and relevant links, providing better troubleshooting guidance.

Tools
LanguageTool

[uncategorized] ~121-~121: Como locución causal, se escribe con coma.
Context: ... de Docker, esta opción no es compatible ya que el empaquetado Docker incluye la compil...

(YA_QUE)

Markdownlint

112-112: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


113-113: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


114-114: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


115-115: Expected: asterisk; Actual: dash
Unordered list style

(MD004, ul-style)


125-127: LGTM!

A new section addressing issues related to automatic translation features in browsers has been added, providing users with troubleshooting guidance.


214-217: LGTM!

A new table detailing billing for different models has been added, providing users with essential pricing information at a glance.

Comment on lines +27 to +30
## How to Add a Custom Domain

[TODO]

Copy link
Contributor

Choose a reason for hiding this comment

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

Add content for custom domain instructions.

The section is incomplete and contains a TODO comment.

Do you want me to generate the content for this section or open a GitHub issue to track this task?

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.

4 participants