-
-
Notifications
You must be signed in to change notification settings - Fork 10k
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(ollama): improve connection check method and provide selector for user to control model options #1397
Conversation
Someone is attempting to deploy a commit to the LobeHub Team on Vercel. A member of the Team first needs to authorize it. |
👍 @sjy Thank you for raising your pull request and contributing to our Community |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1397 +/- ##
==========================================
- Coverage 93.06% 92.96% -0.10%
==========================================
Files 234 235 +1
Lines 12646 12730 +84
Branches 1528 1537 +9
==========================================
+ Hits 11769 11835 +66
- Misses 877 895 +18 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还没全看完,粗看了下,有些细节先调整下
014bf58
to
57ec878
Compare
57ec878
to
64beb7a
Compare
src/services/ollama.ts
Outdated
const response = await this.getOllamaClient().list(); | ||
return response; | ||
} catch { | ||
response = createErrorResponse(ChatErrorType.ServiceUnavailable, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
其他我感觉差不多了,后续要调整的我再给改改。
9878ddb
to
0c71a6b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
上面提到的几个点是进一步的优化项,这一版我觉得可以先合了~
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
❤️ Great PR @sjy ❤️ 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. |
## [Version 0.137.0](v0.136.0...v0.137.0) <sup>Released on **2024-03-15**</sup> #### ✨ Features - **ollama**: Improve connection check method and provide selector for user to control model options. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **ollama**: Improve connection check method and provide selector for user to control model options, closes [#1397](#1397) ([675902f](675902f)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
🎉 This PR is included in version 0.137.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [Version 1.19.0](v1.18.0...v1.19.0) <sup>Released on **2024-03-16**</sup> #### ✨ Features - **ollama**: Improve connection check method and provide selector for user to control model options. - **misc**: Support groq as a model provider. #### 🐛 Bug Fixes - **misc**: Fix rename, Fix URL typo. #### 💄 Styles - **misc**: Update Markdown in ChatItem. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **ollama**: Improve connection check method and provide selector for user to control model options, closes [lobehub#1397](https://github.com/bentwnghk/lobe-chat/issues/1397) ([675902f](675902f)) * **misc**: Support groq as a model provider, closes [lobehub#1569](https://github.com/bentwnghk/lobe-chat/issues/1569) [lobehub#1562](https://github.com/bentwnghk/lobe-chat/issues/1562) [lobehub#1570](https://github.com/bentwnghk/lobe-chat/issues/1570) ([a04c364](a04c364)) #### What's fixed * **misc**: Fix rename ([2faf6cf](2faf6cf)) * **misc**: Fix URL typo, closes [lobehub#1590](https://github.com/bentwnghk/lobe-chat/issues/1590) ([97137a9](97137a9)) #### Styles * **misc**: Update Markdown in ChatItem ([be75549](be75549)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
…for user to control model options (lobehub#1397) * 🐛 fix(ollama): change checker with ollama's tags api * ✨feat(ollama): add error card to pull model * 🚚 chore: move files * 💄 style: update llava logo * 🐛 fix: add ollama service unavailable error type * 🐛 fix: ollama show passed with error message exists * ✨ feat(ollama): add download moniter to show speed and eta remaining time * 🚨 ci: fix lint * 💄 style: improve download style * 🌐 style: add i18n --------- Co-authored-by: shijianyue <[email protected]> Co-authored-by: arvinxx <[email protected]>
## [Version 0.137.0](lobehub/lobe-chat@v0.136.0...v0.137.0) <sup>Released on **2024-03-15**</sup> #### ✨ Features - **ollama**: Improve connection check method and provide selector for user to control model options. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **ollama**: Improve connection check method and provide selector for user to control model options, closes [lobehub#1397](lobehub#1397) ([675902f](lobehub@675902f)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
Create another PR here: https://github.com/lobehub/lobe-chat/pull/1659/checks |
Create another PR here: https://github.com/lobehub/lobe-chat/pull/1659/checks |
## [Version 0.137.0](lobehub/lobe-chat@v0.136.0...v0.137.0) <sup>Released on **2024-03-15**</sup> #### ✨ Features - **ollama**: Improve connection check method and provide selector for user to control model options. <br/> <details> <summary><kbd>Improvements and Fixes</kbd></summary> #### What's improved * **ollama**: Improve connection check method and provide selector for user to control model options, closes [#1397](lobehub/lobe-chat#1397) ([675902f](lobehub/lobe-chat@675902f)) </details> <div align="right"> [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) </div>
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
📝 补充信息 | Additional Information
[ollamajs updated (browser support)]https://github.com/ollama/ollama-js/releases/tag/v0.4.9