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 Upstage model provider support #3670

Merged
merged 4 commits into from
Aug 30, 2024

Conversation

hezhijie0327
Copy link
Contributor

@hezhijie0327 hezhijie0327 commented Aug 29, 2024

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

基于 #2804 实现 Upstage 模型,流式对话及 Function Call 已测试

  1. 待更新 Upstage Provider Icon 已更新
  2. 待更新 solar-1-mini-chat Model Icon 已更新

https://www.upstage.ai/solar-llm
https://developers.upstage.ai/docs/getting-started/models

📝 补充信息 | Additional Information

Chat
image

Function Call
image

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Aug 29, 2024
Copy link

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

@dosubot dosubot bot added Model Provider 模型服务商 🌠 Feature Request New feature or request | 特性与建议 labels Aug 29, 2024
Copy link

codecov bot commented Aug 29, 2024

Codecov Report

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

Project coverage is 91.77%. Comparing base (1f9eb04) to head (f807791).
Report is 17 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    #3670    +/-   ##
========================================
  Coverage   91.76%   91.77%            
========================================
  Files         448      450     +2     
  Lines       29594    29727   +133     
  Branches     3059     2913   -146     
========================================
+ Hits        27157    27281   +124     
- Misses       2437     2446     +9     
Flag Coverage Δ
app 91.77% <89.77%> (+<0.01%) ⬆️
server 97.46% <ø> (+<0.01%) ⬆️

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.

@arvinxx
Copy link
Contributor

arvinxx commented Aug 29, 2024

@canisminor1990 又来新活了, provider 地址: https://www.upstage.ai

@lobehubbot
Copy link
Member

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


@canisminor1990 is back with a new life, provider address: https://www.upstage.ai

@canisminor1990
Copy link
Member

@hezhijie0327 @arvinxx lobehub/lobe-icons@265887d

@hezhijie0327
Copy link
Contributor Author

@canisminor1990 貌似有个 typo,名称应该是 upstage 现在是 upsate

@lobehubbot
Copy link
Member

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


@canisminor1990 seems to have a typo, the name should be upstage and now it is upsate

@hezhijie0327
Copy link
Contributor Author

@arvinxx 没啥问题了~ 默认把两个翻译模型 Disable 了
image
image
image

@lobehubbot
Copy link
Member

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


@arvinxx No problem~ The two translation models are Disabled by default
image
image
image

Copy link

vercel bot commented Aug 30, 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 Aug 30, 2024 1:53pm

@arvinxx
Copy link
Contributor

arvinxx commented Aug 30, 2024

Upstage 为啥要开启代理地址?

@lobehubbot
Copy link
Member

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


Why does Upstage need to enable the proxy address?

@hezhijie0327
Copy link
Contributor Author

@arvinxx 欸 就是看大部分海外模型都有就顺带加上了,要么拿掉?

@lobehubbot
Copy link
Member

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


@arvinxx Well, I just added it after seeing that most overseas models are available, or removed it?

@arvinxx
Copy link
Contributor

arvinxx commented Aug 30, 2024

@hezhijie0327 其实一开始都是移除的,只有发现会存在不可用的情况下才会加。

@lobehubbot
Copy link
Member

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


@hezhijie0327 In fact, it was removed at the beginning, and was only added when it was found to be unavailable.

@hezhijie0327
Copy link
Contributor Author

hezhijie0327 commented Aug 30, 2024

@arvinxx 了解了 已拿掉
image

@lobehubbot
Copy link
Member

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


@arvinxx Got it and removed it

@arvinxx arvinxx merged commit 4b8591b into lobehub:main Aug 30, 2024
7 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 Aug 30, 2024
## [Version&nbsp;1.15.0](v1.14.12...v1.15.0)
<sup>Released on **2024-08-30**</sup>

#### ✨ Features

- **misc**: Add Upstage model provider support.

<br/>

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

#### What's improved

* **misc**: Add Upstage model provider support, closes [#3670](#3670) ([4b8591b](4b8591b))

</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.15.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 Aug 30, 2024
## [Version&nbsp;1.58.0](v1.57.4...v1.58.0)
<sup>Released on **2024-08-30**</sup>

#### ✨ Features

- **misc**: Add Upstage model provider support.

#### 🐛 Bug Fixes

- **misc**: Fix file relative chunks.

#### 💄 Styles

- **misc**: Fix ms doc file preview, Update Qwen and Gemini models info, Update Stepfun models info, Update the sorting of each provider model, Update the sorting of each provider model.

<br/>

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

#### What's improved

* **misc**: Add Upstage model provider support, closes [lobehub#3670](https://github.com/bentwnghk/lobe-chat/issues/3670) ([4b8591b](4b8591b))

#### What's fixed

* **misc**: Fix file relative chunks, closes [lobehub#3676](https://github.com/bentwnghk/lobe-chat/issues/3676) ([afe1906](afe1906))

#### Styles

* **misc**: Fix ms doc file preview, closes [lobehub#3686](https://github.com/bentwnghk/lobe-chat/issues/3686) ([2cd78cf](2cd78cf))
* **misc**: Update Qwen and Gemini models info, closes [lobehub#3693](https://github.com/bentwnghk/lobe-chat/issues/3693) ([ba01641](ba01641))
* **misc**: Update Stepfun models info, closes [lobehub#3685](https://github.com/bentwnghk/lobe-chat/issues/3685) ([478b40a](478b40a))
* **misc**: Update the sorting of each provider model, closes [lobehub#3689](https://github.com/bentwnghk/lobe-chat/issues/3689) ([e82c9dd](e82c9dd))
* **misc**: Update the sorting of each provider model, closes [lobehub#3688](https://github.com/bentwnghk/lobe-chat/issues/3688) ([2630bbc](2630bbc))

</details>

<div align="right">

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

</div>
@hezhijie0327 hezhijie0327 deleted the upstage branch August 31, 2024 21:35
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