-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat(botservice.ts): Changed to respond to system notifications col…
…lectively Because of splitting messages results in slow response. ✨ feat(package.json): add bugs and homepage URLs for issue reporting and project homepage 🐛 fix(package.json): add npm dedup to upgrade script 🔧 chore(package.json): update versions of dev dependencies 🔧 fix(botservice.ts): filter and modify messages to remove system messages and their lines 🐛 fix(botservice.ts): change variable name case from lowercase limit_tokes to uppercase LIMIT_TOKENS to improve semantics ✨ feat(botservice.ts): add expireMessages function to remove old messages ✨ feat: added functionality to add completion and modify last line when continuing a thread 🐛 fix: removed unnecessary function call and added debug information to log 🔧 fix(mm-client.ts): fix import order of packages 🔧 fix(openai-thread-completion.ts): change variable name to uppercase MAX_TOKENS ✨ feat(openai-thread-completion.ts): add usage statistics for the response 🔧 fix(process-graph-response.ts): fix import order Added bugs and homepage URLs to package.json for issue reporting and accessing the project homepage, allowing users to report issues and access the project's homepage. Added npm dedup to the upgrade script, which resolves dependency duplication and keeps package versions up to date. Updated versions of dev dependencies, allowing the use of the latest versions of tools such as TypeScript and ESLint. Filtered and modified the messages to remove system messages and their lines. This results in a cleaner display of messages within threads. By changing the variable name to LIMIT_TOKENS, the limit value for tokens becomes more clear. The addition of the expireMessages function allows for the removal of old messages. This ensures that the total token count of the messages does not exceed the limit. When continuing a thread, the continueThread function is used to add completion to the reply message. The modifyLastLine function is used to modify the last line. The modified answer is then passed to the newPost function to be posted, allowing the thread to continue. Additionally, debug information is added to the log.
- Loading branch information
Showing
13 changed files
with
1,093 additions
and
521 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# # SaaS版 | ||
# engines: | ||
# # ... CONFIG CONTENT ... | ||
# tslint: | ||
# enabled: true | ||
# # ... CONFIG CONTENT ... | ||
# checks: | ||
# comment-format: | ||
# enabled: false | ||
# whitespace: | ||
# enabled: false | ||
# semicolon: | ||
# enabled: false | ||
# no-console: | ||
# enabled: false | ||
# # ... CONFIG CONTENT ... | ||
--- | ||
version: "2" | ||
plugins: | ||
# csslint: | ||
# enabled: true | ||
# coffeelint: | ||
# enabled: true | ||
duplication: | ||
enabled: true | ||
config: | ||
languages: | ||
# https://docs.codeclimate.com/docs/duplication | ||
- typescript | ||
- ruby | ||
- javascript | ||
- python | ||
- php | ||
# https://docs.codeclimate.com/docs/list-of-engines | ||
# https://docs.codeclimate.com/docs/tslint | ||
# $ ./node_modules/.bin/tslint src/**/*.ts | ||
# tslint: | ||
# enabled: true | ||
# config: tslint.json | ||
eslint: | ||
enabled: true | ||
channel: "stable" | ||
config: .eslintrc.json | ||
fixme: | ||
enabled: true | ||
rubocop: | ||
enabled: true | ||
exclude_patterns: | ||
- config/ | ||
- db/ | ||
- dist/ | ||
- features/ | ||
- "**/node_modules/" | ||
- script/ | ||
- "**/spec/" | ||
- "**/test/" | ||
- "**/tests/" | ||
- Tests/ | ||
- "**/vendor/" | ||
- "**/*_test.go" | ||
- "**/*.d.ts" | ||
- "**/*.min.js" | ||
- "**/*.min.css" | ||
- "**/__tests__/" | ||
- "**/__mocks__/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
"semi": false, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"printWidth": 120, | ||
"arrowParens": "avoid" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.