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 360AI model provider #3130

Merged
merged 11 commits into from
Jul 12, 2024
Merged

Conversation

hezhijie0327
Copy link
Contributor

@hezhijie0327 hezhijie0327 commented Jul 3, 2024

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

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

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

ๅŸบไบŽ #2804 ๅฎž็Žฐๆ”ฏๆŒ 360 ๆ™บ่„‘ [ๅพ…้ชŒ่ฏ๏ผŒๆŒ‰็Žฐๆœ‰่ต„ๆ–™ๅบ”ๆ”ฏๆŒ OpenAI SDK ] [ๅŠŸ่ƒฝๆญฃๅธธ]

  1. ๆ™บ่„‘ API ๅผ€ๆ”พๅนณๅฐ้œ€่ฆ็”ณ่ฏท๏ผŒ่ฟ˜ๅœจ็ญ‰ๅฎกๆ‰น้€š่ฟ‡
  2. Icon ๆš‚ๆ—ถ่ฟ˜ๆฒก๏ผŒๆš‚ๆ—ถ็”จ Baichuan ้กถไธ‹ [ๅทฒๆ›ดๆ–ฐ Icon]

https://ai.360.cn/platform/docs/overview
FYI. API ๆ–‡ๆกฃๆƒ้™้œ€่ฆๅœจๅผ€ๆ”พๅนณๅฐๅฎกๆ‰นๅŽๆ‰ๅฏ่ฎฟ้—ฎ

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

image
image
image
image

Copy link

vercel bot commented Jul 3, 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.

@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 Jul 3, 2024

Codecov Report

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

Project coverage is 94.13%. Comparing base (9f211e2) to head (72f25d7).
Report is 3 commits behind head on main.

Files 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    #3130      +/-   ##
==========================================
- Coverage   94.15%   94.13%   -0.02%     
==========================================
  Files         390      392       +2     
  Lines       24290    24372      +82     
  Branches     2760     1797     -963     
==========================================
+ Hits        22870    22943      +73     
- Misses       1420     1429       +9     
Flag Coverage ฮ”
app 94.13% <89.02%> (-0.02%) โฌ‡๏ธ
server 68.85% <90.76%> (+0.19%) โฌ†๏ธ

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
Copy link
Contributor Author

ๅŠŸ่ƒฝๆ€งๅทฒ้ชŒ่ฏ๏ผŒ็ญ‰ icon ready ๅณๅฏ็”จ

PS: 360ๆ™บ่„‘็š„ API ้€‚้… OpenAI SDK ๅพˆ้ซ˜๏ผŒไฝ†ๆ˜ฏ็”ณ่ฏท API ๅผ€ๆ”พๅนณๅฐๆ—ถ้—ด็•ฅ้•ฟ๏ผˆๆ‰€ๆœ‰ๆ–‡ๆกฃ่ฟ˜ๅพ—ๅœจๆœ‰ๆƒ้™ๅŽๆ‰ๅฏ่ฎฟ้—ฎ๏ผ‰

@lobehubbot
Copy link
Member

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


Functionality has been verified and will be available when the icon is ready

PS: 360 Intelligent Brainโ€™s API is very compatible with the OpenAI SDK, but it takes a little longer to apply for the API open platform (all documents must be accessed with permission)

@hezhijie0327 hezhijie0327 marked this pull request as ready for review July 8, 2024 08:46
Copy link

vercel bot commented Jul 9, 2024

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 Jul 12, 2024 1:49am

@arvinxx
Copy link
Contributor

arvinxx commented Jul 9, 2024

ๅพ— rebase ไธ‹ไบ†

@lobehubbot
Copy link
Member

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


Need to rebase

@hezhijie0327
Copy link
Contributor Author

Done

@arvinxx
Copy link
Contributor

arvinxx commented Jul 11, 2024

  1. ๆˆ‘่ฏ•ไบ†ไธ‹ 360 ไธๆ”ฏๆŒ่ทจๅŸŸ๏ผŒ้œ€่ฆ้…็ฝฎไธ‹็ฆ็”จๅฎขๆˆท็ซฏ่ฏทๆฑ‚ๆจกๅผ๏ผ›
image
  1. ๆฃ€ๆŸฅๆ—ถไผšๅ‡บ็Žฐ 504 ็š„้—ฎ้ข˜๏ผ›
image
  1. api provider ๆ˜ฏไธๆ˜ฏๅซ 360 ๆˆ–่€… 360Zhinao ๅฏ่ƒฝๆ›ดๅฅฝ็‚น๏ผŸ็›ดๆŽฅ็”จ zhinao ๆ„Ÿ่ง‰ๅคช้€š็”จๅ่ฏไบ†

@hezhijie0327
Copy link
Contributor Author

@arvinxx

  1. ๅทฒ็ฆ็”จ็ฆ็”จๅฎขๆˆท็ซฏ่ฏทๆฑ‚ๆจกๅผๅนถๆ”นๅไธบ 360ๆ™บ่„‘
    image
    image

  2. 504 ่ฟ™ไธช้”™่ฏฏๆ˜ฏ็ฝ‘็ปœๅผ•่ตท็š„ไธดๆ—ถๆ€ง่ฏทๆฑ‚่ถ…ๆ—ถๅง๏ผŒๆœฌๅœฐๅ’Œ preview ้‡Œๆฒกๅค็Žฐ
    image
    image

@lobehubbot
Copy link
Member

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


@arvinxx

  1. The client request mode has been disabled and renamed to 360 Intelligent Brain
    image
    image

  2. This error 504 is probably a temporary request timeout caused by the network. It does not recur locally or in preview.
    image
    image

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.

LGTM now, Thanks for your contribution~

@arvinxx arvinxx changed the title โœจ feat: Add Zhinao model provider โœจ feat: Add 360AI model provider Jul 12, 2024
@arvinxx arvinxx merged commit 79c5f86 into lobehub:main Jul 12, 2024
6 of 8 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 Jul 12, 2024
## [Version&nbsp;1.4.0](v1.3.6...v1.4.0)
<sup>Released on **2024-07-12**</sup>

#### โœจ Features

- **misc**: Add 360AI model provider.

<br/>

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

#### What's improved

* **misc**: Add 360AI model provider, closes [#3130](#3130) ([79c5f86](79c5f86))

</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.4.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 Jul 12, 2024
## [Version&nbsp;1.47.0](v1.46.5...v1.47.0)
<sup>Released on **2024-07-12**</sup>

#### โœจ Features

- **misc**: Add 360AI model provider.

<br/>

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

#### What's improved

* **misc**: Add 360AI model provider, closes [lobehub#3130](https://github.com/bentwnghk/lobe-chat/issues/3130) ([79c5f86](79c5f86))

</details>

<div align="right">

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

</div>
@hezhijie0327 hezhijie0327 deleted the zhinao branch July 12, 2024 13:21
Mingholy pushed a commit to Mingholy/lobe-chat that referenced this pull request Jul 16, 2024
* โœจ feat: Add Zhinao model provider

* ๐Ÿ”จ chore: update Zhinao models info

* ๐Ÿ”จ chore: update Zhinao models tokens info

* ๐Ÿ’„ style: fix model tag icon missing

* ๐Ÿ’„ style: update Ai360 icon

* ๐Ÿ’„ style: fix typo in ProviderAvatar

* ๐Ÿ”จ chore: cleanup

* ๐Ÿ”จ chore: rename Zhinao to Ai360 (360 ๆ™บ่„‘)

* ๐Ÿ”จ chore: remove blank space
Mingholy pushed a commit to Mingholy/lobe-chat that referenced this pull request Jul 16, 2024
## [Version&nbsp;1.4.0](lobehub/lobe-chat@v1.3.6...v1.4.0)
<sup>Released on **2024-07-12**</sup>

#### โœจ Features

- **misc**: Add 360AI model provider.

<br/>

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

#### What's improved

* **misc**: Add 360AI model provider, closes [lobehub#3130](lobehub#3130) ([79c5f86](lobehub@79c5f86))

</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: Add Zhinao model provider

* ๐Ÿ”จ chore: update Zhinao models info

* ๐Ÿ”จ chore: update Zhinao models tokens info

* ๐Ÿ’„ style: fix model tag icon missing

* ๐Ÿ’„ style: update Ai360 icon

* ๐Ÿ’„ style: fix typo in ProviderAvatar

* ๐Ÿ”จ chore: cleanup

* ๐Ÿ”จ chore: rename Zhinao to Ai360 (360 ๆ™บ่„‘)

* ๐Ÿ”จ chore: remove blank space
ipoly pushed a commit to ipoly/lobe-chat that referenced this pull request Jul 29, 2024
## [Version&nbsp;1.4.0](lobehub/lobe-chat@v1.3.6...v1.4.0)
<sup>Released on **2024-07-12**</sup>

#### โœจ Features

- **misc**: Add 360AI model provider.

<br/>

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

#### What's improved

* **misc**: Add 360AI model provider, closes [lobehub#3130](lobehub#3130) ([79c5f86](lobehub@79c5f86))

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

3 participants