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

修改中英文 README,修复 Azure OpenAI 文档的误导和一些用语用词的小问题等 #5049

Closed
wants to merge 0 commits into from

Conversation

Sha1rholder
Copy link

@Sha1rholder Sha1rholder commented Jul 17, 2024

💻 变更类型 | Change Type

  • feat
  • fix
  • refactor
  • perf
  • style
  • test
  • docs
  • ci
  • chore
  • build

🔀 变更说明 | Description of Change

  • 修正 Azure OpenAI 的正确使用方法,解决 Azure OpenAI 用户根据文档无法使用的问题
  • 修改部分 Environment Variable 的说明如 BASE_URL 以增强可阅读性和简洁性
  • 删除所有环境变量后的(optional)和(可选)等,因为实际上根本不存在必填项,都是可选的
  • 修改了一些语法用字用词上的小毛病

📝 补充信息 | Additional Information

这个pr比较仓促,中英文两个版本的 README 在这次修改后还是有很多逻辑不顺,影响使用的地方,需要整个进行一下大改。有些内容中文文档有但英文文档没有,有些英文有中文没有。我觉得英文文档和中文文档完全分开写会更好,就在英文文档开头留个引导到中文文档的链接即可,这样引导汉语用户直接看中文会降低很多使用难度。我计划这两天重写一下文档,应该能大幅提高文档的可使用性和简洁性,不过还是需要先征求一下主要贡献者的同意

Summary by CodeRabbit

  • Documentation
    • Updated internationalization language options and deployment instructions.
    • Refined environment variable configurations for various APIs.
    • Improved readability and consistency in the Chinese README file for deployment guide.

Copy link

vercel bot commented Jul 17, 2024

@Sha1rholder 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 17, 2024

Walkthrough

The recent updates enhance the internationalization (I18n) language options and refine the deployment instructions for Vercel in the README files. These changes include adjustments to API configurations, such as OpenAI, Azure, Google, and others, and address clarity and consistency in the Chinese deployment guide. Overall, these improvements aim to streamline deployment processes and provide a clearer, more user-friendly experience.

Changes

Files Change Summary
README.md Updated I18n language options, detailed environment variable configurations, and modified deployment instructions for Vercel.
README_CN.md Refined language for clarity, corrected typographical errors, and simplified deployment instructions.

Poem

In code's bright realm where changes flow,
I18n languages now do grow.
With Vercel clear, deployments rise,
APIs configured, reaching skies.
A clearer guide in every line,
For users, now the stars align.
🌟✨🚀


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

Your build has completed!

Preview deployment

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)
README.md (1)

Line range hint 161-293: Environment Variables Section Review

You've made several changes to the environment variables, mostly removing the "optional" designation and specifying some as "important". This is a significant change as it affects how users will perceive the necessity of these variables.

  1. CODE (important): This change is crucial because it emphasizes the importance of setting this variable for security reasons. However, the description could be improved to explain why it is important.
  2. Removal of "optional": This is a good change for simplifying the documentation. However, ensure that it is clear in the documentation which variables are truly optional and which are not to avoid confusion.

Overall, these changes should help users better understand the setup requirements and the importance of certain variables.

However, consider adding more detailed descriptions for each variable to help users understand their use cases better.

Would you like me to help draft these descriptions or open a GitHub issue to track this enhancement?

Tools
LanguageTool

[style] ~192-~192: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...zure Api Key. ### AZURE_API_VERSION Azure Api Version, find it at [Azure Document...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[style] ~212-~212: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...aude Api version. ### ANTHROPIC_URL anthropic claude Api Url. ### BAIDU_API_KEY B...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[style] ~224-~224: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...Y Baidu Secret Key. ###BAIDU_URL Baidu Api Url. ###BYTEDANCE_API_KEY` Byte...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between fbf3551 and 47ec231.

Files selected for processing (2)
  • README.md (5 hunks)
  • README_CN.md (5 hunks)
Files skipped from review due to trivial changes (1)
  • README_CN.md
Additional context used
LanguageTool
README.md

[style] ~192-~192: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...zure Api Key. ### AZURE_API_VERSION Azure Api Version, find it at [Azure Document...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[style] ~212-~212: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...aude Api version. ### ANTHROPIC_URL anthropic claude Api Url. ### BAIDU_API_KEY B...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[style] ~224-~224: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...Y Baidu Secret Key. ###BAIDU_URL Baidu Api Url. ###BYTEDANCE_API_KEY` Byte...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

Additional comments not posted (2)
README.md (2)

50-50: Review of I18n Language Options

The I18n language options have been updated to include a wider range of languages. This change enhances the accessibility and internationalization of the project.


127-127: Clarification in Deployment Instructions

The update to the deployment instructions link is a good improvement for clarity.

@Dogtiti
Copy link
Member

Dogtiti commented Jul 18, 2024

我觉得可选这个标识还是要保留,或者提前声明一下,不然真的有人会不知道哪个要填哪个不填

@Issues-translate-bot
Copy link

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


I think the optional symbol should be retained or declared in advance, otherwise some people will really not know which one needs to be filled in and which one should not.

@Sha1rholder
Copy link
Author

我觉得可选这个标识还是要保留,或者提前声明一下,不然真的有人会不知道哪个要填哪个不填

但其实没有一个是必须填写的

@Issues-translate-bot
Copy link

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


I think the optional symbol should be retained, or declared in advance, otherwise some people will really not know which one needs to be filled in and which one should not.

But in fact, none of them are required to be filled in.

README.md Outdated

Baidu Secret Key.

### `BAIDU_URL` (optional)
### `BAIDU_URL`
Copy link
Contributor

Choose a reason for hiding this comment

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

why remove optional ?

Copy link
Author

Choose a reason for hiding this comment

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

因为原本的环境变量只有一个OPENAI_API_KEY(required)而其他所有变量都是(optional),但实际如果不使用openai原生api而是使用类似azure openai之类的话,这个环境变量也不是必填的

我看到这个库最近一次更新了,我的pr和这个最新的commit有冲突,于是关闭了。不过我还是建议把(optional)删了因为会引起误导

README.md Outdated

> Default: `https://api.openai.com`
Copy link
Contributor

Choose a reason for hiding this comment

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

这里的Default值也不建议移除

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