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

Refactor Backend with Abstract CustomBackend using AoP (Aspect Oriented Programming) and PropertyManager [WIP] #66

Draft
wants to merge 27 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
7108fda
refactor(backend): init refactoring backend code
snowyu Dec 23, 2023
0598c1e
docs: add more documents
snowyu Dec 28, 2023
42148a9
test: more test added
snowyu Dec 28, 2023
861e54d
feat: add message-options
snowyu Dec 28, 2023
ef20390
refactor: seperate options from custom-backend
snowyu Dec 29, 2023
9ad6fbc
chore: minor change for readabilty
snowyu Dec 29, 2023
1f3e450
refactor: rename CustomBackend to Backend, CustomBotBackend to BotBac…
snowyu Dec 29, 2023
6c32486
feat: add BotPropsSchema
snowyu Dec 29, 2023
7007041
feat: add VisionBackend
snowyu Dec 29, 2023
879496b
refactor: rename message-options.ts to bot-options.ts
snowyu Dec 30, 2023
c977105
fix: sub factory should create an instance item directly
snowyu Dec 30, 2023
89f327a
feat: add skipDefault option to property descriptor
snowyu Dec 30, 2023
702cf56
build: add @type/lodash package
snowyu Dec 30, 2023
2c2c689
feat: add bot options default value to stream, cache_prompt, n_predict
snowyu Dec 30, 2023
a0dbf69
fix: set VisionBackend temperature default value to 0
snowyu Dec 30, 2023
89746e2
test: bot default value
snowyu Dec 30, 2023
2d2099d
fix: vision backend should inherit from BotBackend
snowyu Jan 4, 2024
140907b
feat: add improved event ability to Backend
snowyu Jan 4, 2024
db580ac
feat: add current option to backend factory
snowyu Jan 4, 2024
0cb4fa3
build: add event-ex etc packages
snowyu Jan 4, 2024
cf2f778
feat: more types added (need rename)
snowyu Jan 4, 2024
68b26b8
fix(bot-backend): name should be bot_name
snowyu Jan 15, 2024
7e33977
fix(llamacpp-vision-backend): should pass options
snowyu Jan 15, 2024
7ce0eb4
fix: forget super() after using EventEmitter
snowyu Jan 15, 2024
bd4d3b7
build: ignore cache .swc and all node_modules in .gitignore
snowyu Jan 19, 2024
11d5abd
feat: add toJsonSchema, toUiSchema to Backend
snowyu Jan 19, 2024
416d761
feat: add TTSBackend class
snowyu Jan 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
node_modules
/.pnp
.pnp.js

Expand Down Expand Up @@ -34,3 +34,6 @@ next-env.d.ts

working/*
!working/.gitkeep

.swc
cache
Loading
Loading