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

♻️ refactor: genServerLLMConfig function, get *_MODEL_LIST from env #4694

Merged
merged 4 commits into from
Nov 15, 2024

Conversation

hezhijie0327
Copy link
Contributor

@hezhijie0327 hezhijie0327 commented Nov 14, 2024

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

更改:

  1. src/server/globalConfig/genServerLLMConfig.ts:
    a. 从 process.env 中获取 *_MODEL_LIST

  2. src/config/llm.ts:
    a. 移除所有 *_MODEL_LIST

修复:

  1. CLOUDFLARE_MODEL_LIST 未声明

📝 补充信息 | Additional Information

Copy link

vercel bot commented Nov 14, 2024

@hezhijie0327 is attempting to deploy a commit to the LobeChat Community Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. 🐛 Bug Something isn't working | 缺陷 labels Nov 14, 2024
@lobehubbot
Copy link
Member

👍 @hezhijie0327

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 size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Nov 15, 2024
@hezhijie0327 hezhijie0327 changed the title 🐛 fix: fix CLOUDFLARE_MODEL_LIST env missing ♻️ refactor: genServerLLMConfig function, get *_MODEL_LIST from env Nov 15, 2024
Copy link

codecov bot commented Nov 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.42%. Comparing base (32630fa) to head (1167a1a).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4694      +/-   ##
==========================================
- Coverage   92.44%   92.42%   -0.02%     
==========================================
  Files         524      524              
  Lines       36893    36828      -65     
  Branches     2518     2365     -153     
==========================================
- Hits        34104    34040      -64     
+ Misses       2789     2788       -1     
Flag Coverage Δ
app 92.42% <100.00%> (-0.02%) ⬇️
server 97.26% <ø> (ø)

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

vercel bot commented Nov 15, 2024

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 💬 Add feedback Nov 15, 2024 2:13pm
lobe-chat-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2024 2:13pm

@lobehubbot
Copy link
Member

❤️ Great PR @hezhijie0327 ❤️

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 Nov 15, 2024
### [Version&nbsp;1.31.7](v1.31.6...v1.31.7)
<sup>Released on **2024-11-15**</sup>

#### ♻ Code Refactoring

- **misc**: `genServerLLMConfig` function, get *_MODEL_LIST from env.

<br/>

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

#### Code refactoring

* **misc**: `genServerLLMConfig` function, get *_MODEL_LIST from env, closes [#4694](#4694) ([d84f369](d84f369))

</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.31.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

@hezhijie0327 hezhijie0327 deleted the cloudflare branch November 15, 2024 20:54
github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this pull request Nov 15, 2024
### [Version&nbsp;1.73.6](v1.73.5...v1.73.6)
<sup>Released on **2024-11-15**</sup>

#### ♻ Code Refactoring

- **misc**: `genServerLLMConfig` function, get *_MODEL_LIST from env, move ChatInput to features/ChatInput.

<br/>

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

#### Code refactoring

* **misc**: `genServerLLMConfig` function, get *_MODEL_LIST from env, closes [lobehub#4694](https://github.com/bentwnghk/lobe-chat/issues/4694) ([d84f369](d84f369))
* **misc**: Move ChatInput to features/ChatInput, closes [lobehub#4699](https://github.com/bentwnghk/lobe-chat/issues/4699) ([5737d3f](5737d3f))

</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
🐛 Bug Something isn't working | 缺陷 released size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants