Skip to content

Conversation

AnotiaWang
Copy link
Contributor

@AnotiaWang AnotiaWang commented Mar 17, 2025

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

新增了无问芯穹 AI 大模型提供商的支持。

📝 补充信息 | Additional Information

TODO:

  • 在设置里给平台添加 Logo
  • 在文档使用说明里添加头图

他们平台的一些已知信息:

  • 模型目前都是免费的,以后也会提供免费额度
  • 平台暂不支持 function call,正在实现中
  • 一些视觉模型(比如 Qwen2 VL)和海外模型(比如 Llama 3.3)需要企业申请才能使用,所以没有写在预设模型列表里
  • 不保留请求数据

测试结果:

功能 截图
对话(已测试客户端 + 服务端模式)
使用 INFINIAI_API_KEY 环境变量
image
模型列表 modal image
获取远程模型列表 image

话说获取远程模型列表之后,有些模型的信息就不对了,比如说 DeepSeek R1 的上下文长度变成了 128K,这是预期行为吗?

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Mar 17, 2025
Copy link

vercel bot commented Mar 17, 2025

@AnotiaWang is attempting to deploy a commit to the LobeChat Desktop Team on Vercel.

A member of the Team first needs to authorize it.

@lobehubbot
Copy link
Member

👍 @AnotiaWang

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 the Model Provider 模型服务商 label Mar 17, 2025
Copy link
Contributor

gru-agent bot commented Mar 17, 2025

TestGru Assignment

Summary

Link CommitId Status Reason
Detail b8581c5 🚫 Skipped No files need to be tested {".env.example":"target file(.env.example) not in work scope \n include: src/utils,src/server,src/database,src/services,src/store,packages//src/ \n exclude: node_modules,/*.test.ts,/.test.tsx,**/.spec.ts,/*.spec.tsx,/.d.ts,**/.test.js,/*.spec.js,src/database/server","Dockerfile":"target file(Dockerfile) not in work scope \n include: src/utils,src/server,src/database,src/services,src/store,packages//src/** \n exclude: node_modules,/*.test.ts,/.test.tsx,**/.spec.ts,/*.spec.tsx,/.d.ts,**/.test.js,/*.spec.js,src/database/server","Dockerfile.database":"target file(Dockerfile.database) not in work scope \n include: src/utils,src/server,src/database,src/services,src/store,packages//src/** \n exclude: node_modules,/*.test.ts,/.test.tsx,**/.spec.ts,/*.spec.tsx,/.d.ts,**/.test.js,**/*.spec.js,src/database/server","Dockerfile.pglite":"target file(Dockerfile.pglite) not in work scope \n include: src/utils,src/server,src/dat…

Tip

You can @gru-agent and leave your feedback. TestGru will make adjustments based on your input

@AnotiaWang AnotiaWang force-pushed the feat/infiniai-provider branch 2 times, most recently from 116ff36 to 7d6e29a Compare March 17, 2025 09:04
@AnotiaWang AnotiaWang changed the title feat: support infini-ai provider ✨ feat: support infini-ai provider Mar 17, 2025
Copy link

vercel bot commented Mar 17, 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 Mar 18, 2025 10:02am

Copy link

codecov bot commented Mar 17, 2025

Codecov Report

Attention: Patch coverage is 94.90909% with 28 lines in your changes missing coverage. Please review.

Project coverage is 91.37%. Comparing base (de8df94) to head (673d27e).
Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
src/libs/agent-runtime/infiniai/index.ts 34.88% 28 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7012      +/-   ##
==========================================
+ Coverage   91.34%   91.37%   +0.02%     
==========================================
  Files         733      736       +3     
  Lines       69493    70043     +550     
  Branches     3410     4760    +1350     
==========================================
+ Hits        63478    64000     +522     
- Misses       6015     6043      +28     
Flag Coverage Δ
app 91.37% <94.90%> (+0.02%) ⬆️
server 97.49% <ø> (ø)

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.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@arvinxx
Copy link
Member

arvinxx commented Mar 18, 2025

Provider 名改成 infinigence 吧?

https://icons.lobehub.com/components/infinigence

@AnotiaWang
Copy link
Contributor Author

Provider 名改成 infinigence 吧?

https://icons.lobehub.com/components/infinigence

我问了他们运营,说叫 Infini-AI 😂

@yafangwang9
Copy link

https://icons.lobehub.com/components/infinigence

感谢🙏 我们通常命名为 Infini-AI ,Infinigence (无问芯穹)也可以的

@arvinxx
Copy link
Member

arvinxx commented Mar 20, 2025

那我们调整下图标的映射描述

@lobehubbot
Copy link
Member

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


Then let's adjust the mapping description of the icon below

@yafangwang9
Copy link

那我们调整下图标的映射描述

Thanks♪(・ω・)ノ

@lobehubbot
Copy link
Member

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


Then we adjust the mapping description of the icon below

Thanks♪(・ω・)ノ

@arvinxx
Copy link
Member

arvinxx commented Mar 20, 2025

@AnotiaWang 处理下冲突,其他我没问题了

@lobehubbot
Copy link
Member

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


@AnotiaWang handles the conflict, I have no problem with the others

@AnotiaWang AnotiaWang force-pushed the feat/infiniai-provider branch from 673d27e to e6b6949 Compare March 20, 2025 09:30
@AnotiaWang
Copy link
Contributor Author

好像图标不太对,是不是哪个地方的代码要改一下?代码里目前的 provider 名字还是 infiniai

image

@arvinxx
Copy link
Member

arvinxx commented Mar 21, 2025

@AnotiaWang 图标我已经添加:lobehub/lobe-icons@0e8277f

@arvinxx arvinxx merged commit 72d76fe into lobehub:main Mar 21, 2025
2 of 5 checks passed
@lobehubbot
Copy link
Member

❤️ Great PR @AnotiaWang ❤️

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 消息。

@hedeqiang
Copy link
Contributor

这个 pr 貌似没有打包

@lobehubbot
Copy link
Member

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


This pr seems to be unpacked

github-actions bot pushed a commit that referenced this pull request Mar 21, 2025
## [Version&nbsp;1.74.0](v1.73.2...v1.74.0)
<sup>Released on **2025-03-21**</sup>

#### ✨ Features

- **misc**: Add infini-ai provider, add Search1API provider with web search DeepSeek models.

<br/>

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

#### What's improved

* **misc**: Add infini-ai provider, closes [#7012](#7012) ([72d76fe](72d76fe))
* **misc**: Add Search1API provider with web search DeepSeek models, closes [#6376](#6376) ([3450714](3450714))

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

The release is available on:

Your semantic-release bot 📦🚀

@yafangwang9
Copy link

yafangwang9 commented Mar 22, 2025 via email

@AnotiaWang AnotiaWang deleted the feat/infiniai-provider branch April 30, 2025 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

5 participants