lobe-chat
lobe-chat copied to clipboard
✨ feat: support the perplexity provider
💻 变更类型 | Change Type
- [x] ✨ feat
- [ ] 🐛 fix
- [ ] ♻️ refactor
- [ ] 💄 style
- [ ] 🔨 chore
- [ ] ⚡️ perf
- [ ] 📝 docs
🔀 变更说明 | Description of Change
Added a new model provider, Perplexity, along with the following five models.
Corresponding setup section is also added to the Language Model.
📝 补充信息 | Additional Information
Perplexity AI requires the value of FrequencyPenalty to be greater than 0. Thus, the default value for FrequencyPenalty has been set to 0.1.
@gijigae is attempting to deploy a commit to the LobeHub Team on Vercel.
A member of the Team first needs to authorize it.
👍 @gijigae
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.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。
Codecov Report
Attention: 73 lines
in your changes are missing coverage. Please review.
Comparison is base (
2b3e457
) 86.76% compared to head (c395ba3
) 86.30%. Report is 7 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
src/libs/agent-runtime/perplexity/index.ts | 19.76% | 69 Missing :warning: |
src/app/api/errorResponse.ts | 33.33% | 2 Missing :warning: |
src/services/_auth.ts | 50.00% | 2 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## main #1339 +/- ##
==========================================
- Coverage 86.76% 86.30% -0.46%
==========================================
Files 215 217 +2
Lines 10863 11035 +172
Branches 1172 1176 +4
==========================================
+ Hits 9425 9524 +99
- Misses 1438 1511 +73
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
lobe-chat | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Feb 21, 2024 2:09pm |
❤️ Great PR @gijigae ❤️
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 消息。
:tada: This PR is included in version 0.129.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
@gijigae Oh I just forgot the document, would you mind to add doucment to guide our users to how to config the perplexity provider?
@gijigae Oh I just forgot the document, would you mind to add doucment to guide our users to how to config the perplexity provider?
Thanks for merging @arvinxx ! For the document, should I add a new document file to the contributing/Basic
directory or adding a new line to the docs/usage/features/multi-ai-providers.mdx
will suffice? Or both?
@gijigae We need several documents for different users:
For the users who need self-hosting, add these documents below:
- Environment Variables List : add perplexity provider Envs: https://github.com/lobehub/lobe-chat/blob/main/docs/self-hosting/environment-variables/model-provider.mdx
- Intergetaion Guide: add a guide for these user to know how to add perplexity provider, just like azure openai.
For the users who just use Lobe Chat, add these documents:
- Provider Intro and Usage add a document about the introduction of perplexity provider.( I will add an example of Ollama soon)
-
Update Multi AI Providers: update the
docs/usage/features/multi-ai-providers.mdx
and add a link to the doc above.
For the developers , I think we just need a guide of how to add a new provider. But for this PR, I thinks it's optional. (I will be appreciative If you can write a document about this. It can also be powered by the gpt and crawler plugin😄)
Will prepare those documents including a guide for developers to add a new provider. Regarding "can be powered by the gpt and crawler plugin", what does that mean? There are so many things to learn and I like it 😊.
Regarding "can be powered by the gpt and crawler plugin", what does that mean?
@gijigae like this:
You can refers it with this link: https://sharegpt.com/c/G0azkMo
the final document here: https://github.com/lobehub/lobe-chat/blob/main/contributing/Internationalization/Add-New-Locale.zh-CN.md
and I run npm i18n-docs
to translate it from Chinese to English. It's super efficiently.
the agent can find here: https://chat-preview.lobehub.com/market?agent=lobe-chat-developer-document-writer