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: brand new AI provider #5158

Merged
merged 7 commits into from
Jan 7, 2025
Merged

✨ feat: brand new AI provider #5158

merged 7 commits into from
Jan 7, 2025

Conversation

arvinxx
Copy link
Contributor

@arvinxx arvinxx commented Dec 23, 2024

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

本次升级,只在 服务端 db 下可用,后续迭代会支持 pglite db 。而 dexie db 仍保持原有实现,后续将在 v2.0 中完全废弃。

  • 新增 /settings/provider 路由,承载未来所有的 AI 服务商;

服务商总览页

image

允许添加自定义服务商:

image

支持服务商排序:

image

服务商配置页:

image

优化一键拉取模型体验:

支持模型排序:

image

支持自定义模型配置

image

支持创建自定义模型

image

📝 补充信息 | Additional Information

Copy link

vercel bot commented Dec 23, 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 Jan 7, 2025 3:02pm
lobe-chat-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 7, 2025 3:02pm

@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.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

Copy link

codecov bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.73%. Comparing base (b603d00) to head (827ce0c).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5158      +/-   ##
==========================================
- Coverage   92.10%   91.73%   -0.38%     
==========================================
  Files         572      591      +19     
  Lines       44171    46027    +1856     
  Branches     2592     4179    +1587     
==========================================
+ Hits        40682    42221    +1539     
- Misses       3489     3806     +317     
Flag Coverage Δ
app 91.73% <100.00%> (-0.38%) ⬇️
server 98.01% <ø> (+0.30%) ⬆️

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.

@arvinxx arvinxx force-pushed the feat/reactor-llm-to-ai-infra branch from 0675a9b to 4df5b34 Compare December 24, 2024 16:57
@arvinxx arvinxx force-pushed the feat/reactor-llm-to-ai-infra branch from 5257983 to 0bda5ce Compare December 25, 2024 15:51
@arvinxx arvinxx changed the title ✨ feat: reactor llm to ai infra ✨ feat: reactor llm to model provider Dec 25, 2024
@arvinxx
Copy link
Contributor Author

arvinxx commented Jan 7, 2025

@SAnBlog 本期不支持,后续会考虑支持上

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@SAnBlog This issue does not support it, but we will consider supporting it in the future.

… model 拉取。完成 ai models 新增和修改逻辑、排序完整实现,优化开关体验,完成 chat model select 实现。完成 provider 的配置修改与删除开发

update config

fix

add sdk type

fix toggle search issue

improve enable

优化模型开关操作体验

feat: 完成 chat model select 部分实现

fix auth

兼容 client db 废弃模式

fix test

完成 provider 的配置修改与删除开发

clean
@arvinxx arvinxx changed the title ✨ feat: reactor llm to ai provider ✨ feat: brand new AI provider Jan 7, 2025
@arvinxx arvinxx merged commit bde6d64 into main Jan 7, 2025
10 of 11 checks passed
@arvinxx arvinxx deleted the feat/reactor-llm-to-ai-infra branch January 7, 2025 16:26
@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 Jan 7, 2025
## [Version&nbsp;1.44.0](v1.43.6...v1.44.0)
<sup>Released on **2025-01-07**</sup>

#### ✨ Features

- **misc**: Brand new AI provider.

<br/>

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

#### What's improved

* **misc**: Brand new AI provider, closes [#5158](#5158) ([bde6d64](bde6d64))

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

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this pull request Jan 7, 2025
## [Version&nbsp;1.86.0](v1.85.4...v1.86.0)
<sup>Released on **2025-01-07**</sup>

#### ✨ Features

- **misc**: Brand new AI provider.

#### 🐛 Bug Fixes

- **misc**: Fix portal suspense error when first open.

<br/>

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

#### What's improved

* **misc**: Brand new AI provider, closes [lobehub#5158](https://github.com/bentwnghk/lobe-chat/issues/5158) ([bde6d64](bde6d64))

#### What's fixed

* **misc**: Fix portal suspense error when first open, closes [lobehub#5322](https://github.com/bentwnghk/lobe-chat/issues/5322) ([0d4c487](0d4c487))

</details>

<div align="right">

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

</div>
AirboZH pushed a commit to yuanze-dev/lobe-chat that referenced this pull request Jan 9, 2025
* ✨ feat: 完成 ai provider 部分的新增、menu 列表、卡片列表与开启关闭,支持 model 开关,并优化列表展示,支持 model 拉取。完成 ai models 新增和修改逻辑、排序完整实现,优化开关体验,完成 chat model select 实现。完成 provider 的配置修改与删除开发

update config

fix

add sdk type

fix toggle search issue

improve enable

优化模型开关操作体验

feat: 完成 chat model select 部分实现

fix auth

兼容 client db 废弃模式

fix test

完成 provider 的配置修改与删除开发

clean

* 修正未登录态的数据

* fix db sql

* fix lint

* update

* improve loading

* improve model list empty state
AirboZH pushed a commit to yuanze-dev/lobe-chat that referenced this pull request Jan 9, 2025
## [Version&nbsp;1.44.0](lobehub/lobe-chat@v1.43.6...v1.44.0)
<sup>Released on **2025-01-07**</sup>

#### ✨ Features

- **misc**: Brand new AI provider.

<br/>

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

#### What's improved

* **misc**: Brand new AI provider, closes [lobehub#5158](lobehub#5158) ([bde6d64](lobehub@bde6d64))

</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
🌠 Feature Request New feature or request | 特性与建议 Model Provider 模型服务商 released size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
3 participants