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

💄 style: improve serveral error code #6299

Merged
merged 5 commits into from
Feb 18, 2025
Merged

💄 style: improve serveral error code #6299

merged 5 commits into from
Feb 18, 2025

Conversation

arvinxx
Copy link
Contributor

@arvinxx arvinxx commented Feb 18, 2025

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • 📝 docs
  • 🔨 chore

🔀 变更说明 | Description of Change

优化了若干类 Error Code

📝 补充信息 | Additional Information

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Feb 18, 2025
Copy link

vercel bot commented Feb 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lobe-chat-database ✅ Ready (Inspect) Visit Preview Feb 18, 2025 3:00pm
lobe-chat-desktop ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 18, 2025 3:00pm
lobe-chat-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 18, 2025 3:00pm

@lobehubbot
Copy link
Member

👍 @arvinxx

Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

@dosubot dosubot bot added the 💄 Design Design an style | 样式问题 label Feb 18, 2025
Copy link

codecov bot commented Feb 18, 2025

Codecov Report

Attention: Patch coverage is 66.66667% with 16 lines in your changes missing coverage. Please review.

Project coverage is 91.84%. Comparing base (a0a9592) to head (d0c3f21).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
...ent-runtime/utils/openaiCompatibleFactory/index.ts 36.36% 14 Missing ⚠️
src/utils/errorResponse.ts 71.42% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6299      +/-   ##
==========================================
- Coverage   91.86%   91.84%   -0.03%     
==========================================
  Files         684      684              
  Lines       62196    62237      +41     
  Branches     3095     2906     -189     
==========================================
+ Hits        57137    57162      +25     
- Misses       5059     5075      +16     
Flag Coverage Δ
app 91.84% <66.66%> (-0.03%) ⬇️
server 97.90% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

gru-agent bot commented Feb 18, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail 0a3c93e ✅ Finished Cancelled by auto rebase

Files

File Pull Request
src/utils/errorResponse.ts 🛑 Cancelled (Cancelled by auto rebase)

Tip

You can @gru-agent and leave your feedback. TestGru will make adjustments based on your input

Copy link
Contributor

gru-agent bot commented Feb 18, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail ba61b83 ✅ Finished Cancelled by auto rebase

Files

File Pull Request
src/utils/errorResponse.ts 🛑 Cancelled (Cancelled by auto rebase)

Tip

You can @gru-agent and leave your feedback. TestGru will make adjustments based on your input

Copy link
Contributor

gru-agent bot commented Feb 18, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail fd4e43b ✅ Finished Cancelled by auto rebase

Files

File Pull Request
src/utils/errorResponse.ts 🛑 Cancelled (Cancelled by auto rebase)

Tip

You can @gru-agent and leave your feedback. TestGru will make adjustments based on your input

Copy link
Contributor

gru-agent bot commented Feb 18, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail d0c3f21 ✅ Finished

Files

File Pull Request
src/utils/errorResponse.ts 🟣 Merged #6300

Tip

You can @gru-agent and leave your feedback. TestGru will make adjustments based on your input

@arvinxx arvinxx changed the title 💄 style: improve error code 💄 style: improve serveral error code Feb 18, 2025
@arvinxx arvinxx merged commit 352cb90 into main Feb 18, 2025
16 of 18 checks passed
@arvinxx arvinxx deleted the style/improve-error branch February 18, 2025 14:56
@lobehubbot
Copy link
Member

❤️ Great PR @arvinxx ❤️

The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world.
项目的成长离不开用户反馈和贡献,感谢您的贡献! 如果您对 LobeHub 开发者社区感兴趣,请加入我们的 discord,然后私信 @arvinxx@canisminor1990。他们会邀请您加入我们的私密开发者频道。我们将会讨论关于 Lobe Chat 的开发,分享和讨论全球范围内的 AI 消息。

github-actions bot pushed a commit that referenced this pull request Feb 18, 2025
### [Version&nbsp;1.61.1](v1.61.0...v1.61.1)
<sup>Released on **2025-02-18**</sup>

#### 💄 Styles

- **misc**: Improve serveral error code.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve serveral error code, closes [#6299](#6299) ([352cb90](352cb90))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
@lobehubbot
Copy link
Member

🎉 This PR is included in version 1.61.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this pull request Feb 18, 2025
## [Version&nbsp;1.102.0](v1.101.1...v1.102.0)
<sup>Released on **2025-02-18**</sup>

#### ✨ Features

- **misc**: Support google vertex ai as a new provider.

#### 🐛 Bug Fixes

- **misc**: Try to fix pglite worker.

#### 💄 Styles

- **misc**: Add `kimi-latest` for Moonshot, improve error content and console error, improve perplexity models, improve serveral error code.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

* **misc**: Support google vertex ai as a new provider, closes [lobehub#4487](https://github.com/bentwnghk/lobe-chat/issues/4487) ([a0a9592](a0a9592))

#### What's fixed

* **misc**: Try to fix pglite worker, closes [lobehub#6169](https://github.com/bentwnghk/lobe-chat/issues/6169) ([b3f4f13](b3f4f13))

#### Styles

* **misc**: Add `kimi-latest` for Moonshot, closes [lobehub#6295](https://github.com/bentwnghk/lobe-chat/issues/6295) ([4fb98da](4fb98da))
* **misc**: Improve error content and console error, closes [lobehub#6305](https://github.com/bentwnghk/lobe-chat/issues/6305) ([6a35f55](6a35f55))
* **misc**: Improve perplexity models, closes [lobehub#6307](https://github.com/bentwnghk/lobe-chat/issues/6307) ([c99908d](c99908d))
* **misc**: Improve serveral error code, closes [lobehub#6299](https://github.com/bentwnghk/lobe-chat/issues/6299) ([352cb90](352cb90))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
bentwnghk pushed a commit to bentwnghk/lobe-chat that referenced this pull request Feb 20, 2025
* improve error code

* improve CHAT MASK

* improve CHAT MASK

* update i18n

* fix tests
likaiqiang pushed a commit to likaiqiang/lobe-chat that referenced this pull request Feb 26, 2025
* improve error code

* improve CHAT MASK

* improve CHAT MASK

* update i18n

* fix tests
likaiqiang pushed a commit to likaiqiang/lobe-chat that referenced this pull request Feb 26, 2025
### [Version&nbsp;1.61.1](lobehub/lobe-chat@v1.61.0...v1.61.1)
<sup>Released on **2025-02-18**</sup>

#### 💄 Styles

- **misc**: Improve serveral error code.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### Styles

* **misc**: Improve serveral error code, closes [lobehub#6299](lobehub#6299) ([352cb90](lobehub@352cb90))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💄 Design Design an style | 样式问题 released size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Request] UI friendly for API request error for some normal cases
2 participants