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 Ai21Labs model provider #3727

Merged
merged 11 commits into from
Sep 18, 2024
Merged

Conversation

hezhijie0327
Copy link
Contributor

@hezhijie0327 hezhijie0327 commented Sep 2, 2024

๐Ÿ’ป ๅ˜ๆ›ด็ฑปๅž‹ | Change Type

  • โœจ feat
  • ๐Ÿ› fix
  • โ™ป๏ธ refactor
  • ๐Ÿ’„ style
  • ๐Ÿ‘ท build
  • โšก๏ธ perf
  • ๐Ÿ“ docs
  • ๐Ÿ”จ chore

๐Ÿ”€ ๅ˜ๆ›ด่ฏดๆ˜Ž | Description of Change

ๅŸบไบŽ #2804 ๅฎž็Žฐ Ai21Labs ็š„ Jamba ๆจกๅž‹๏ผŒๆ”ฏๆŒ 256K ไธŠไธ‹ๆ–‡๏ผŒๆตๅผๅฏน่ฏๅŠ Function Call (้žๆตๅผ๏ผŒไธๆ”ฏๆŒๆตๅผ่พ“ๅ‡บ)

  1. ๅพ…ๆ›ดๆ–ฐ Ai21Labs Provider Icon ๐Ÿ’„ style: fix AI21 modelTag display in Bedrock & add providerIconย lobe-icons#36

https://www.ai21.com/blog/announcing-jamba-model-family

๐Ÿ“ ่กฅๅ……ไฟกๆฏ | Additional Information

image
image
image
image
image
image

Copy link

vercel bot commented Sep 2, 2024

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

A member of the Team first needs to authorize it.

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Sep 2, 2024
@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.
้žๅธธๆ„Ÿ่ฐขๆ‚จๆๅ‡บๆ‹‰ๅ–่ฏทๆฑ‚ๅนถไธบๆˆ‘ไปฌ็š„็คพๅŒบๅšๅ‡บ่ดก็Œฎ๏ผŒ่ฏท็กฎไฟๆ‚จๅทฒ็ป้ตๅพชไบ†ๆˆ‘ไปฌ็š„่ดก็ŒฎๆŒ‡ๅ—๏ผŒๆˆ‘ไปฌไผšๅฐฝๅฟซๅฎกๆŸฅๅฎƒใ€‚
ๅฆ‚ๆžœๆ‚จ้‡ๅˆฐไปปไฝ•้—ฎ้ข˜๏ผŒ่ฏท้šๆ—ถไธŽๆˆ‘ไปฌ่”็ณปใ€‚

@dosubot dosubot bot added Model Provider ๆจกๅž‹ๆœๅŠกๅ•† ๐ŸŒ  Feature Request New feature or request | ็‰นๆ€งไธŽๅปบ่ฎฎ labels Sep 2, 2024
Copy link

codecov bot commented Sep 2, 2024

Codecov Report

Attention: Patch coverage is 89.65517% with 9 lines in your changes missing coverage. Please review.

Project coverage is 92.07%. Comparing base (2a937bc) to head (7c73bb5).
Report is 37 commits behind head on main.

Files with missing lines Patch % Lines
src/app/api/chat/agentRuntime.ts 14.28% 6 Missing โš ๏ธ
src/libs/agent-runtime/AgentRuntime.ts 57.14% 3 Missing โš ๏ธ
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3727      +/-   ##
==========================================
- Coverage   92.08%   92.07%   -0.01%     
==========================================
  Files         460      462       +2     
  Lines       31551    31638      +87     
  Branches     2152     3150     +998     
==========================================
+ Hits        29053    29131      +78     
- Misses       2498     2507       +9     
Flag Coverage ฮ”
app 92.07% <89.65%> (-0.01%) โฌ‡๏ธ
server 97.36% <รธ> (รธ)

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 marked this pull request as draft September 2, 2024 12:39
Copy link

vercel bot commented Sep 3, 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 Sep 18, 2024 5:32pm
lobe-chat-preview โŒ Failed (Inspect) Sep 18, 2024 5:32pm

@hezhijie0327
Copy link
Contributor Author

ๅทฒๆ›ดๆ–ฐ icon
image
image
image
image

@hezhijie0327 hezhijie0327 marked this pull request as ready for review September 10, 2024 12:10
@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


ๅทฒๆ›ดๆ–ฐ icon
image
image
image
image

@arvinxx
Copy link
Contributor

arvinxx commented Sep 10, 2024

@hezhijie0327 rebase ไธ‹ main๏ผŒProviderAvatar ๆ”ถๅˆฐ็ป„ไปถ้‡ŒๅŽปไบ†

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


@hezhijie0327 rebase main, ProviderAvatar is received in the component

@hezhijie0327
Copy link
Contributor Author

ๆžๅฎšไบ†

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


nailed it

@arvinxx
Copy link
Contributor

arvinxx commented Sep 10, 2024

ๅพ—ๅ† rebase ไธ‹ไบ†๐Ÿ˜ฐ

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


Need to rebase again๐Ÿ˜ฐ

@hezhijie0327
Copy link
Contributor Author

@arvinxx ๅฅฝไบ†

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


@arvinxx ok

@hezhijie0327
Copy link
Contributor Author

ๅพ—็œ‹ไธ‹ๆŽ’ๅบๅฏนไธๅฏน... ๆŒ‰็…ง #3886 ๆ„Ÿ่ง‰ไธŠ็Žฐๅœจๆ˜ฏๅ›ฝๅค–ๆไพ›ๅ•†ๅœจๅ‰ ๅ›ฝๅ†…ๅœจๅŽ๏ผŸ

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


You have to check whether the ordering is correct... According to #3886, it feels like foreign providers are in the front and domestic providers are in the back?

@arvinxx
Copy link
Contributor

arvinxx commented Sep 11, 2024

@hezhijie0327 ๅฏน

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


@hezhijie0327 Right

@hezhijie0327
Copy link
Contributor Author

OK ้‚ฃๅฐฑๆฒก้—ฎ้ข˜ไบ†
image
image

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. ๐Ÿ‘ฏ๐Ÿ‘ญ๐Ÿป๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘๐Ÿ‘ซ๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘๐Ÿป๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ๐Ÿฟ๐Ÿ‘ฌ๐Ÿฟ


OK That's no problem
image
image

@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 Sep 18, 2024
## [Version&nbsp;1.19.0](v1.18.2...v1.19.0)
<sup>Released on **2024-09-18**</sup>

#### โœจ Features

- **misc**: Add Ai21Labs model provider, add Github Models provider, support native Artifacts just like Claude.

<br/>

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

#### What's improved

* **misc**: Add Ai21Labs model provider, closes [#3727](#3727) ([d2fe0f0](d2fe0f0))
* **misc**: Add Github Models provider, closes [#3869](#3869) ([8eac1bd](8eac1bd))
* **misc**: Support native Artifacts just like Claude, closes [#3985](#3985) ([0c42c46](0c42c46))

</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.19.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 Sep 19, 2024
## [Version&nbsp;1.62.0](v1.61.0...v1.62.0)
<sup>Released on **2024-09-19**</sup>

#### โœจ Features

- **misc**: Add Ai21Labs model provider, add Github Models provider, support native Artifacts just like Claude.

#### ๐Ÿ› Bug Fixes

- **misc**: Fix InterceptingRoutes in discover.

#### ๐Ÿ’„ Styles

- **misc**: Add mistral provider new models.

<br/>

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

#### What's improved

* **misc**: Add Ai21Labs model provider, closes [lobehub#3727](https://github.com/bentwnghk/lobe-chat/issues/3727) ([d2fe0f0](d2fe0f0))
* **misc**: Add Github Models provider, closes [lobehub#3869](https://github.com/bentwnghk/lobe-chat/issues/3869) ([8eac1bd](8eac1bd))
* **misc**: Support native Artifacts just like Claude, closes [lobehub#3985](https://github.com/bentwnghk/lobe-chat/issues/3985) ([0c42c46](0c42c46))

#### What's fixed

* **misc**: Fix InterceptingRoutes in discover, closes [lobehub#4011](https://github.com/bentwnghk/lobe-chat/issues/4011) ([2b75040](2b75040))

#### Styles

* **misc**: Add mistral provider new models, closes [lobehub#4014](https://github.com/bentwnghk/lobe-chat/issues/4014) ([0b70d57](0b70d57))

</details>

<div align="right">

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

</div>
cy948 pushed a commit to cy948/lobe-chat that referenced this pull request Sep 21, 2024
* โœจ feat: add Ai21Labs model provider

* ๐Ÿ”จ chore: fix rebase conflicts

* ๐Ÿ› fix: fix CI error

* ๐Ÿ’„ style: add model price

* ๐Ÿ› fix: fix CI error
cy948 pushed a commit to cy948/lobe-chat that referenced this pull request Sep 21, 2024
## [Version&nbsp;1.19.0](lobehub/lobe-chat@v1.18.2...v1.19.0)
<sup>Released on **2024-09-18**</sup>

#### โœจ Features

- **misc**: Add Ai21Labs model provider, add Github Models provider, support native Artifacts just like Claude.

<br/>

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

#### What's improved

* **misc**: Add Ai21Labs model provider, closes [lobehub#3727](lobehub#3727) ([d2fe0f0](lobehub@d2fe0f0))
* **misc**: Add Github Models provider, closes [lobehub#3869](lobehub#3869) ([8eac1bd](lobehub@8eac1bd))
* **misc**: Support native Artifacts just like Claude, closes [lobehub#3985](lobehub#3985) ([0c42c46](lobehub@0c42c46))

</details>

<div align="right">

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

</div>
@hezhijie0327 hezhijie0327 deleted the ai21labs branch September 23, 2024 15:26
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.

3 participants