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: Support DeepSeek as new model provider #2446

Merged
merged 20 commits into from
May 14, 2024
Merged

Conversation

RubuJam
Copy link
Contributor

@RubuJam RubuJam commented May 10, 2024

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

Support model provider : DeepSeek

支持模型供应商:DeepSeek

close:#2454 #2464

📝 补充信息 | Additional Information

Copy link

vercel bot commented May 10, 2024

@RubuJam is attempting to deploy a commit to the LobeHub Team on Vercel.

A member of the Team first needs to authorize it.

@lobehubbot
Copy link
Member

👍 @RubuJam

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

src/app/api/chat/deepseek/route.ts Outdated Show resolved Hide resolved
src/libs/agent-runtime/deepseek/index.ts Outdated Show resolved Hide resolved
@RubuJam RubuJam marked this pull request as ready for review May 12, 2024 05:37
Copy link

codecov bot commented May 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.19%. Comparing base (54524ab) to head (ebfb636).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2446      +/-   ##
==========================================
+ Coverage   93.16%   93.19%   +0.03%     
==========================================
  Files         321      323       +2     
  Lines       19372    19459      +87     
  Branches     1451     2284     +833     
==========================================
+ Hits        18047    18134      +87     
  Misses       1325     1325              

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

@RubuJam RubuJam requested a review from arvinxx May 12, 2024 05:55
@RubuJam
Copy link
Contributor Author

RubuJam commented May 13, 2024

@arvinxx 可以review了,我在手机和PC上测试都是正常的

@arvinxx It’s ready for review. I tested it on my phone and PC and it was normal.

@RubuJam RubuJam requested a review from arvinxx May 13, 2024 08:14
@sheldon123z
Copy link

快快快哟

@lobehubbot
Copy link
Member

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


Come on, come on!

Copy link

vercel bot commented May 13, 2024

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

Name Status Preview Comments Updated (UTC)
lobe-chat-community ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2024 2:42am

@arvinxx
Copy link
Contributor

arvinxx commented May 13, 2024

@RubuJam 要 rebase 下 main, plugin.json 的内容按 main 的来就好了,这个 PR 的可以删掉,应该是我之前的 PR 漏 i18n 了。

@lobehubbot
Copy link
Member

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


@RubuJam If you need to rebase main, just follow the content of plugin.json as in main. This PR can be deleted. It should be that my previous PR missed i18n.

@RubuJam
Copy link
Contributor Author

RubuJam commented May 13, 2024

@arvinxx 解决了

@arvinxx solved

@RubuJam 要 rebase 下 main, plugin.json 的内容按 main 的来就好了,这个 PR 的可以删掉,应该是我之前的 PR 漏 i18n 了。

Copy link
Contributor

@arvinxx arvinxx left a comment

Choose a reason for hiding this comment

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

代码看下来没太大问题,build完试一下看看

src/migrations/FromV3ToV4/types/v3.ts Show resolved Hide resolved
@RubuJam
Copy link
Contributor Author

RubuJam commented May 13, 2024

我之前build没什么问题,之后没改关键代码,应该可以正常运行

I had no problem building it before, and then I didn't change the key code. It should run normally.

代码看下来没太大问题,build完试一下看看

@arvinxx
Copy link
Contributor

arvinxx commented May 13, 2024

点检查有抛错?

image

是不是这个问题 #2466 ?看下是否和这个PR有关系?如果没有关系的话其他应该ok了。

@RubuJam
Copy link
Contributor Author

RubuJam commented May 13, 2024

#2466 无关,点击检查确实有问题,但可以正常对话,我个人感觉#2466 是他部署产生的问题

It has nothing to do with #2466. There is indeed a problem when you click to check, but you can have a normal conversation. I personally feel that #2466 is a problem caused by his deployment.

点检查有抛错?

image 是不是这个问题 #2466 ?看下是否和这个PR有关系?如果没有关系的话其他应该ok了。

@arvinxx arvinxx merged commit 18028f3 into lobehub:main May 14, 2024
6 checks passed
@lobehubbot
Copy link
Member

❤️ Great PR @RubuJam ❤️

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 May 14, 2024
## [Version 0.159.0](v0.158.2...v0.159.0)
<sup>Released on **2024-05-14**</sup>

#### ✨ Features

- **misc**: Support DeepSeek as new model provider.

<br/>

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

#### What's improved

* **misc**: Support DeepSeek as new model provider, closes [#2446](#2446) ([18028f3](18028f3))

</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 0.159.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@RubuJam RubuJam deleted the DeepSeek branch May 14, 2024 03:09
RubuJam added a commit to RubuJam/lobe-chat that referenced this pull request May 14, 2024
github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this pull request May 14, 2024
## [Version&nbsp;1.39.0](v1.38.1...v1.39.0)
<sup>Released on **2024-05-14**</sup>

#### ♻ Code Refactoring

- **misc**: Move next-auth hooks to user store actions.

#### ✨ Features

- **misc**: Support DeepSeek as new model provider.

#### 🐛 Bug Fixes

- **misc**: Dragging text mistakenly as image, pin `antd@5.17.0` to fix build error.

<br/>

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

#### Code refactoring

* **misc**: Move next-auth hooks to user store actions, closes [lobehub#2364](https://github.com/bentwnghk/lobe-chat/issues/2364) ([6dbcd70](6dbcd70))

#### What's improved

* **misc**: Support DeepSeek as new model provider, closes [lobehub#2446](https://github.com/bentwnghk/lobe-chat/issues/2446) ([18028f3](18028f3))

#### What's fixed

* **misc**: Dragging text mistakenly as image, closes [lobehub#2111](https://github.com/bentwnghk/lobe-chat/issues/2111) ([3c047ef](3c047ef))
* **misc**: Pin `antd@5.17.0` to fix build error, closes [lobehub#2483](https://github.com/bentwnghk/lobe-chat/issues/2483) ([aa03833](aa03833))

</details>

<div align="right">

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

</div>
TheNameIsNigel pushed a commit to TheNameIsNigel/lobe-chat that referenced this pull request May 15, 2024
* ✨ feat: support DeepSeek as provider

* ✨ feat: Support DeepSeek as new model provider

* ✨ feat: Support DeepSeek as new model provider

* ✨ feat: Support DeepSeek as new model provider

* ✨ feat: Support DeepSeek as new model provider

* ✨ feat: Support DeepSeek as new model provider

* ✨ feat: Support DeepSeek as new model provider

* ✨ feat: Support DeepSeek as new model provider

* ✨ feat: Support DeepSeek as new model provider

* ✨ feat: Support DeepSeek as new model provider

* 💄 style: Translate some content

* ✨ feat: Support DeepSeek as new model provider

* 🐛 fix: Clean up the code and resolve a bug
TheNameIsNigel pushed a commit to TheNameIsNigel/lobe-chat that referenced this pull request May 15, 2024
## [Version&nbsp;0.159.0](lobehub/lobe-chat@v0.158.2...v0.159.0)
<sup>Released on **2024-05-14**</sup>

#### ✨ Features

- **misc**: Support DeepSeek as new model provider.

<br/>

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

#### What's improved

* **misc**: Support DeepSeek as new model provider, closes [lobehub#2446](lobehub#2446) ([18028f3](lobehub@18028f3))

</details>

<div align="right">

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

</div>
ipoly pushed a commit to ipoly/lobe-chat that referenced this pull request Jul 29, 2024
* ✨ feat: support DeepSeek as provider

* ✨ feat: Support DeepSeek as new model provider

* ✨ feat: Support DeepSeek as new model provider

* ✨ feat: Support DeepSeek as new model provider

* ✨ feat: Support DeepSeek as new model provider

* ✨ feat: Support DeepSeek as new model provider

* ✨ feat: Support DeepSeek as new model provider

* ✨ feat: Support DeepSeek as new model provider

* ✨ feat: Support DeepSeek as new model provider

* ✨ feat: Support DeepSeek as new model provider

* 💄 style: Translate some content

* ✨ feat: Support DeepSeek as new model provider

* 🐛 fix: Clean up the code and resolve a bug
ipoly pushed a commit to ipoly/lobe-chat that referenced this pull request Jul 29, 2024
## [Version&nbsp;0.159.0](lobehub/lobe-chat@v0.158.2...v0.159.0)
<sup>Released on **2024-05-14**</sup>

#### ✨ Features

- **misc**: Support DeepSeek as new model provider.

<br/>

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

#### What's improved

* **misc**: Support DeepSeek as new model provider, closes [lobehub#2446](lobehub#2446) ([18028f3](lobehub@18028f3))

</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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants