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: add Jina AI model provider support #6140

Merged
merged 7 commits into from
Feb 16, 2025
Merged

Conversation

hezhijie0327
Copy link
Contributor

@hezhijie0327 hezhijie0327 commented Feb 14, 2025

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

增加 Jina 搜索推理支持

  1. Jina Logo 更新 [TODO]
  2. jina-deepsearch-v1 模型参数更新,暂未找到有关上下文长度的信息 [TODO]
  3. 支持对话,模型列表获取

📝 补充信息 | Additional Information

功能 截图
对话 image
搜索 image

Copy link

vercel bot commented Feb 14, 2025

@hezhijie0327 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

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

Copy link

codecov bot commented Feb 14, 2025

Codecov Report

Attention: Patch coverage is 69.29825% with 35 lines in your changes missing coverage. Please review.

Project coverage is 91.78%. Comparing base (f444e66) to head (2b7d66d).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
src/libs/agent-runtime/jina/index.ts 34.69% 32 Missing ⚠️
src/libs/agent-runtime/AgentRuntime.ts 57.14% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6140      +/-   ##
==========================================
- Coverage   91.82%   91.78%   -0.05%     
==========================================
  Files         670      673       +3     
  Lines       61320    61434     +114     
  Branches     2871     2873       +2     
==========================================
+ Hits        56310    56388      +78     
- Misses       5010     5046      +36     
Flag Coverage Δ
app 91.78% <69.29%> (-0.05%) ⬇️
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.

@hezhijie0327 hezhijie0327 changed the title ✨ feat: add Jina model provider support ✨ feat: add Jina AI model provider support Feb 14, 2025
@hezhijie0327 hezhijie0327 marked this pull request as ready for review February 14, 2025 09:26
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. Model Provider 模型服务商 🌠 Feature Request New feature or request | 特性与建议 labels Feb 14, 2025
Copy link

vercel bot commented Feb 14, 2025

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

Name Status Preview Comments Updated (UTC)
lobe-chat-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 16, 2025 4:54am

@arvinxx
Copy link
Contributor

arvinxx commented Feb 14, 2025

Jina Logo lobehub/lobe-icons#74

@arvinxx arvinxx merged commit 6b4c15b into lobehub:main Feb 16, 2025
10 of 12 checks passed
@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 Feb 16, 2025
## [Version&nbsp;1.57.0](v1.56.5...v1.57.0)
<sup>Released on **2025-02-16**</sup>

#### ✨ Features

- **misc**: Add Jina AI model provider support.

<br/>

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

#### What's improved

* **misc**: Add Jina AI model provider support, closes [#6140](#6140) ([6b4c15b](6b4c15b))

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

The release is available on:

Your semantic-release bot 📦🚀

@hezhijie0327 hezhijie0327 deleted the jina branch February 16, 2025 08:05
github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this pull request Feb 16, 2025
## [Version&nbsp;1.99.0](v1.98.0...v1.99.0)
<sup>Released on **2025-02-16**</sup>

#### ✨ Features

- **misc**: Add Jina AI model provider support.

#### 🐛 Bug Fixes

- **misc**: Fix ai provider description not show correctly, match o1 series models more robust in Azure OpenAI provider, set max_completion_tokens to null for Azure OpenAI.

#### 💄 Styles

- **misc**: Fix mobile agent settings not show correctly, improve inbox agent settings.

<br/>

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

#### What's improved

* **misc**: Add Jina AI model provider support, closes [lobehub#6140](https://github.com/bentwnghk/lobe-chat/issues/6140) ([6b4c15b](6b4c15b))

#### What's fixed

* **misc**: Fix ai provider description not show correctly, closes [lobehub#6199](https://github.com/bentwnghk/lobe-chat/issues/6199) ([3e8d9c5](3e8d9c5))
* **misc**: Match o1 series models more robust in Azure OpenAI provider, closes [lobehub#6193](https://github.com/bentwnghk/lobe-chat/issues/6193) ([f444e66](f444e66))
* **misc**: Set max_completion_tokens to null for Azure OpenAI, closes [lobehub#6198](https://github.com/bentwnghk/lobe-chat/issues/6198) ([e9e8da4](e9e8da4))

#### Styles

* **misc**: Fix mobile agent settings not show correctly, closes [lobehub#6203](https://github.com/bentwnghk/lobe-chat/issues/6203) ([0285d95](0285d95))
* **misc**: Improve inbox agent settings, closes [lobehub#6197](https://github.com/bentwnghk/lobe-chat/issues/6197) ([37b70f0](37b70f0))

</details>

<div align="right">

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

</div>
ramu-narasinga pushed a commit to ramu-narasinga/lobe-chat that referenced this pull request Feb 17, 2025
* ✨ feat: add Jina model provider support

* 🐛 fix: fix ci error

* 💄 style: add `proxyUrl` support

* 🔨 chore: cleanup code

---------

Co-authored-by: Arvin Xu <[email protected]>
ramu-narasinga pushed a commit to ramu-narasinga/lobe-chat that referenced this pull request Feb 17, 2025
## [Version&nbsp;1.57.0](lobehub/lobe-chat@v1.56.5...v1.57.0)
<sup>Released on **2025-02-16**</sup>

#### ✨ Features

- **misc**: Add Jina AI model provider support.

<br/>

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

#### What's improved

* **misc**: Add Jina AI model provider support, closes [lobehub#6140](lobehub#6140) ([6b4c15b](lobehub@6b4c15b))

</details>

<div align="right">

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

</div>
@Nick17t
Copy link

Nick17t commented Feb 17, 2025

@hezhijie0327, @arvinxx

非常感谢你们迅速的推进!为了避免误解,辛苦两位调整一下:

我们的公司名称是 Jina AI。而 Jina 是我们之前研发的开源框架。

另外,关于 maxtoken 的限制,是 100万 (1m) token。

谢谢!

image

@hezhijie0327
Copy link
Contributor Author

@Nick17t PR #6243

@lobehubbot
Copy link
Member

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


@Nick17t PR #6243

bentwnghk pushed a commit to bentwnghk/lobe-chat that referenced this pull request Feb 20, 2025
* ✨ feat: add Jina model provider support

* 🐛 fix: fix ci error

* 💄 style: add `proxyUrl` support

* 🔨 chore: cleanup code

---------

Co-authored-by: Arvin Xu <[email protected]>
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:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants