-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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: refactor *_PROXY_URL
, get var from ENV
#4747
Conversation
@hezhijie0327 is attempting to deploy a commit to the LobeChat Community Team on Vercel. A member of the Team first needs to authorize it. |
Thank you for raising your pull request and contributing to our Community |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4747 +/- ##
==========================================
- Coverage 92.32% 92.31% -0.01%
==========================================
Files 528 528
Lines 37020 37002 -18
Branches 3690 2370 -1320
==========================================
- Hits 34179 34160 -19
- Misses 2841 2842 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
XAI_PROXY_URL
env missing*_PROXY_URL
, get var from ENV
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
棒 👍 感觉下一步就可以简化 AgentRuntime 的传参了
❤️ 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. |
### [Version 1.32.8](v1.32.7...v1.32.8) <sup>Released on **2024-11-24**</sup> #### 🐛 Bug Fixes - **misc**: Fix `XAI_PROXY_URL` env missing. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix `XAI_PROXY_URL` env missing, closes [#4747](#4747) ([7c9e88e](7c9e88e)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
🎉 This PR is included in version 1.32.8 🎉 The release is available on: Your semantic-release bot 📦🚀 |
### [Version 1.74.5](v1.74.4...v1.74.5) <sup>Released on **2024-11-24**</sup> #### 🐛 Bug Fixes - **misc**: Fix `XAI_PROXY_URL` env missing. #### 💄 Styles - **misc**: Support to reset fetched models. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's fixed * **misc**: Fix `XAI_PROXY_URL` env missing, closes [lobehub#4747](https://github.com/bentwnghk/lobe-chat/issues/4747) ([7c9e88e](7c9e88e)) #### Styles * **misc**: Support to reset fetched models, closes [lobehub#4260](https://github.com/bentwnghk/lobe-chat/issues/4260) ([22480a9](22480a9)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
*_PROXY_URL
,直接从环境变量(process.env.*_PROXY_URL
)中获取src/config/llm.ts
*_PROXY_URL
src/server/modules/AgentRuntime/index.ts
src/server/globalConfig/index.ts
getLLMConfig()
,直接从环境变量中获取process.env.OLLAMA_PROXY_URL
src/app/(backend)/_deprecated/createBizOpenAI/createAzureOpenai.ts
src/app/(backend)/_deprecated/createBizOpenAI/createOpenai.ts
process.env.OPENAI_PROXY_URL
XAI_PROXY_URL
MOONSHOT_PROXY_URL
配置,在src/config/modelProviders/moonshot.ts
中缺少proxyUrl
字段📝 补充信息 | Additional Information