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: fetch model list on client #2252

Merged
merged 1 commit into from Apr 28, 2024

Conversation

cy948
Copy link
Contributor

@cy948 cy948 commented Apr 28, 2024

💻 变更类型 | Change Type

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

🔀 变更说明 | Description of Change

  • src/services/models.ts :若用户使用浏览器进行会话请求,默认在浏览器获取模型列表;
  • src/libs/agent-runtime/ollama/index.ts:启用 ollma provider models 功能;
  • src/app/settings/llm/Ollama/index.tsx:启用 ollma model list fetcher;

📝 补充信息 | Additional Information

Copy link

vercel bot commented Apr 28, 2024

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

A member of the Team first needs to authorize it.

@lobehubbot
Copy link
Member

👍 @cy948

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 Apr 28, 2024

Codecov Report

Attention: Patch coverage is 28.57143% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 92.53%. Comparing base (7cd0a34) to head (5b0b22e).

Files Patch % Lines
src/libs/agent-runtime/ollama/index.ts 28.57% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2252      +/-   ##
==========================================
- Coverage   92.55%   92.53%   -0.03%     
==========================================
  Files         279      279              
  Lines       15973    15974       +1     
  Branches     1852     1153     -699     
==========================================
- Hits        14784    14781       -3     
- Misses       1189     1193       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

vercel bot commented Apr 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lobe-chat-community ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 28, 2024 10:04am

@arvinxx arvinxx merged commit 76310a8 into lobehub:main Apr 28, 2024
4 of 7 checks passed
@lobehubbot
Copy link
Member

❤️ Great PR @cy948 ❤️

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 Apr 28, 2024
### [Version 0.150.7](v0.150.6...v0.150.7)
<sup>Released on **2024-04-28**</sup>

#### 🐛 Bug Fixes

- **misc**: Suport to fetch model list on client.

<br/>

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

#### What's fixed

* **misc**: Suport to fetch model list on client, closes [#2252](#2252) ([76310a8](76310a8))

</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 0.150.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit to bentwnghk/lobe-chat that referenced this pull request Apr 28, 2024
### [Version&nbsp;1.30.5](v1.30.4...v1.30.5)
<sup>Released on **2024-04-28**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor  feature flags store to server config store.

#### 🐛 Bug Fixes

- **misc**: Suport to fetch model list on client.

#### 💄 Styles

- **ollama**: Phi3 Instruct models and its model icons.

<br/>

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

#### Code refactoring

* **misc**: Refactor  feature flags store to server config store, closes [lobehub#2263](https://github.com/bentwnghk/lobe-chat/issues/2263) ([2e991d7](2e991d7))

#### What's fixed

* **misc**: Suport to fetch model list on client, closes [lobehub#2252](https://github.com/bentwnghk/lobe-chat/issues/2252) ([76310a8](76310a8))

#### Styles

* **ollama**: Phi3 Instruct models and its model icons, closes [lobehub#2254](https://github.com/bentwnghk/lobe-chat/issues/2254) ([c9b55cc](c9b55cc))

</details>

<div align="right">

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

</div>
@cy948 cy948 deleted the fix/fetch-models-on-client branch May 4, 2024 05:55
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.

How can I find my loccal models in ollama? [Request] 默认ollama模型列表优化
3 participants