Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ refactor: package upgrade and refactor code
1. **devcontainer.json**: - Commend detailed steps for new image setup. 2. **chatgpt-mattermost-bot.code-workspace**: - Added Docker extension recommendation. 3. **compose.yaml**: - Fixed typo in service name. 4. **botservice.mjs**: - Added function to shorten long strings. - Added names to message roles. - Improved image resizing and format conversion logic. 5. **package.json**: - Updated dependency versions. @anthropic-ai/sdk ^0.20.5 → ^0.21.1 @eslint/js ^9.0.0 → ^9.3.0 @google/generative-ai ^0.7.0 → ^0.11.4 @mattermost/client ^9.6.0 → ^9.7.0 @mattermost/types ^9.6.0 → ^9.7.0 @swc/core ^1.4.14 → ^1.5.7 @swc/helpers ^0.5.10 → ^0.5.11 @types/node ^20.12.7 → ^20.12.12 cohere-ai ^7.9.4 → ^7.10.1 esbuild ^0.20.2 → ^0.21.3 eslint ^9.0.0 → ^9.3.0 openai ^4.35.0 → ^4.47.1 rimraf ^5.0.5 → ^5.0.7 sharp ^0.33.3 → ^0.33.4 textlint-rule-preset-ja-spacing ^2.3.1 → ^2.4.3 tsx ^4.7.2 → ^4.11.0 typescript-eslint ^7.7.0 → ^7.10.0 vitest ^1.5.0 → ^1.6.0 ws ^8.16.0 → ^8.17.0 6. **CohereAdapter.ts**: - Refactored code. 7. **GoogleGeminiAdapter.ts**: - Added function to shorten long strings. - Added names to message roles. 8. **botservice.ts**: - Added user names to messages. 9. **openai-wrapper.ts**: - Added logging for chat completions. - Added names to message roles. 10. **postMessage.ts**: - Added user names to messages. - Added support for environment variables to enhance application flexibility. - Refactored code to improve readability and maintainability. - Updated dependencies to apply the latest features and security patches.
- Loading branch information