Skip to content

Commit

Permalink
add model community (#230)
Browse files Browse the repository at this point in the history
* [feat]optimize tailwind config

* [feat]init shadcn vue

* fix

* query sort

* fix

* [feat]add model select component

* fix

* types

* types

* [feat]add model select dialog

* [feat]show model select

* [feat]add test

* fix

* fix

* fix

* [feat]fetch data with api

* [feat]add parameter to model select component

* fix

* fix

* [feat] optimize my code

* like

* base model types

* [feat]add vditor editor

* download

* download

* workflow

* fix

* [feat]custom full screen

* [feat]custom vditor full screen

* fix

* disable vditor cache

* [feat] fix single page used bugs

* [feat]fix

* fix

* [feat]fix vditor can't fullscreen

* fix

* [feat]optimize model select component & +remove model & optimize filter

* fix

* fix

* [feat]optimize alert dialog used

* [feat]+ apply node model widge

* [feat]optimize

* [feat]add model detail

* fix

* [feat]optimize class

* [feat]add debounce for node widget dbclick

* [feat]optimize model detail

* fix

* lijing test

* [feat]optimize node apply

* reformat

* [feat] fix editor preview image z-index

* [feat]optimize

* fix

* fix

* fix

* [feat]optimize scrollbar style & detail apply modelversion & remove model

* [feat] new version

* fix

* interrupt

* fix

* [feat]optimize

* [feat] add edit

* interrupt

* [feat]optimize expandedModels & model select scrollbar

* [feat]optimize filter

* fix

* [feat]update toast for big brother

* [feat]add easy-markdown

* interrupt

* fix

* [feat]add mini markdown editor

* [feat]remove unused test code

* fix

* [feat]optimize scroll model version

* fix

* [feat]add scroll area for model detail

* fix

* [feat]codereview for myself

* [feat]remove debug console.log

* fix

* status

* fix

* [fix]filter class & model detail scrollbar

* fix

* hash

* [feat]optimize style

* [feat]optimize tab

* hash

* [feat]fix filterbar bugs

* [feat]replace frontend modelTypes Array

* fix

* [feat]delete unuse files

* [feat]optimize preview md

* [feat]release

* [feat]optimize scroll

* [feat]optimize model detail

* fix

* fix

* [feat]code review

* [feat]optimize APIClient requests to aiohttp

* [feat]fix cancel update version fetch model list data error

* [feat]optimize scroll style & add sekleton for table model

* [feat]optimize model version scroll

* [feat]remove unused code

* fix

* [fix]auto merge

* [fix]code review

* fix

* fix

* fix

* remove useless code

* [feat]optimize model list fetch nodata

* Dev bbs patch 2 (#229)

* Refine cn lora loader node

* refine

* add exec_info

---------

Co-authored-by: Yao Chi <[email protected]>

* [feat]fix seach keywords no data bug

* fix

* add upload_id when upload error

* fix

* [feat]fix model list bug for page

* [feat]release core js

* fix

* fix do_get

* [feat] add loadding for model list

* [feat]update core js

* [feat]remove unused code

* remove wrong env var

* fix

* [fix]tab style

* [fix]resolve  default css

* [feat]relase new core js

* [feat]relase

* [feat]remove unusedcode

* [feat]relase

* fix

* fix

* Add biz_lib_frontend as a submodule(bizyair_frontend repo) (#237)

* Add biz_lib_frontend as a submodule(bizyair_frontend repo)

* checkou to dev_bbs branch

* Dev bbs rename submodule (#238)

* rename submoudle to bizyair_frontend

* update gitmodules

* reformat

* add frontend submodule (#239)

* use https url

* [feat]fix filter bug

* fix threading and session problems (#240)

* fix

* fix model_version_id_missing (#242)

* refine

* refine

* update tow api in upload progress

* add poc of js hash calculation

* Update prompt_processor.py

model_version_ids 修改为int数组

* fix

* m1

* m1

* m1

* m1

* remove useless codes

* timeout time to 2 seconds

* reformat

* [feat]optimize

* Remove package.json and package-lock.json files as part of project cleanup

* Remove unused biz_lib_frontend.js file and refactor bizyair_frontend.js for improved code organization and readability.

* fix

* fix

* Update subproject reference and refactor bizyair_frontend.js to improve code structure and reduce size.

* [feat]relase

* Fix tags are selected by default (#256)

Co-authored-by: Yao Chi <[email protected]>

* Refactor LoRA and ControlNet widget callbacks for improved error handling and functionality

- Introduced a new `createSetWidgetCallback` function to streamline widget event handling for LoRA and ControlNet loaders.
- Enhanced error handling during node creation and mouse event processing.
- Removed redundant code related to mouse event handling, improving readability and maintainability.
- Updated widget properties to ensure proper interaction and prevent default behaviors.

This refactor aims to enhance the user experience by ensuring that model selection is more robust and error-free.

* fix

* fix

* [feat]修复低版本无法弹出

* [feat]relase frontend

* [feat]release opt z-index

* fix

* [feat]fix bug & relase frontend

* [feat]fix bug & release frontend

* fix

* fix

* add news

* “fix”

* fix

* reformat

---------

Co-authored-by: of-HaiQin <[email protected]>
Co-authored-by: dantegarden <[email protected]>
Co-authored-by: Your Name <[email protected]>
Co-authored-by: YaoChi <[email protected]>
Co-authored-by: FengWen <[email protected]>
Co-authored-by: FengWen <[email protected]>
  • Loading branch information
7 people authored Dec 5, 2024
1 parent 5e99a0a commit 4640774
Show file tree
Hide file tree
Showing 50 changed files with 1,883 additions and 3,072 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "bizyair_frontend"]
path = bizyair_frontend
url = https://github.com/siliconflow/bizyair_frontend.git
1 change: 1 addition & 0 deletions bizyair_frontend
Submodule bizyair_frontend added at 834596
1 change: 1 addition & 0 deletions docs/docs/bznews.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"12/05 更新自定义模型上传和分享方式,原有上传方法不再支持,请尽快升级 BizyAir": "#",
"09/19 更新模型上传功能,显示上传进度条,上传模型大小不受 ComfyUI 限制": "https://siliconflow.github.io/BizyAir/model-host/introduce.html",
"09/06 发布 v0.2.0,支持使用自定义 LoRA,欢迎升级使用": "https://siliconflow.github.io/BizyAir/model-host/introduce.html"
}
26 changes: 21 additions & 5 deletions js/apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function customFetch(url, options = {}) {
}
}
fetchCache.set(url, now);
const host = `${window.location.origin}${window.location.pathname == '/' ? '' : window.location.pathname}`
const host = `${window.location.origin}${window.location.pathname === '/' ? '' : window.location.pathname}`
return window.fetch(`${host}${url}`, options)
.then(response => {
if (response.status === 404) {
Expand Down Expand Up @@ -79,24 +79,31 @@ export function set_api_key ( data ) {
})
}

export function models_files ( data ) {
return customFetch(`/bizyair/modelhost/models/files?type=${data.type}&public=${data.public}`, {method: 'GET'})
export function models_files ( params, data ) {
let actualParams = ''
for (const i in params) {
actualParams += `${i}=${params[i]}&`
}
return customFetch(`/bizyair/community/models/query?${actualParams}`, {
method: 'POST',
body: JSON.stringify(data)
})
}

export function change_public ( data ) {
return customFetch('/bizyair/modelhost/models/change_public', {method: 'PUT', body: JSON.stringify(data)})
}

export function model_types () {
return customFetch('/bizyair/modelhost/model_types', {method: 'GET'})
return customFetch('/bizyair/community/model_types', {method: 'GET'})
}

export function check_folder (url) {
return customFetch(`/bizyair/modelhost/check_folder?absolute_path=${encodeURIComponent(url)}`, {method: 'GET'})
}

export function submit_upload (data) {
return customFetch(`/bizyair/modelhost/submit_upload?clientId=${sessionStorage.getItem('clientId')}`, {
return customFetch(`/bizyair/community/submit_upload?clientId=${sessionStorage.getItem('clientId')}`, {
method: 'POST',
body: JSON.stringify(data)
})
Expand Down Expand Up @@ -135,3 +142,12 @@ export function putDescription (data) {
body: JSON.stringify(data)
})
}

export function uploadImage (file) {
const formData = new FormData();
formData.append('file', file);
return customFetch('/bizyair/community/files/upload', {
method: 'POST',
body: formData
})
}
653 changes: 653 additions & 0 deletions js/bizyair_frontend.js

Large diffs are not rendered by default.

102 changes: 0 additions & 102 deletions js/dialog/apiKey.js

This file was deleted.

Loading

0 comments on commit 4640774

Please sign in to comment.