-
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: Add support for integration with Google Gemini API
Added support for Google Gemini API by updating environment variables, README, adding a new GoogleGeminiAdapter class, and adjusting existing code. This enables the use of Google's latest AI models to provide more diverse responses and functionalities. 🚀 feat(Dockerfile, eslint.config.js, package.json): Support ESLint V9 Added an ESLint configuration file `eslint.config.js` and included a step in the Dockerfile to copy this file. Also, removed the unnecessary `--ext ts` option from the `lint` script in `package.json` and streamlined dependencies. These changes aim to maintain consistency in the code and make it easier for developers to uphold code quality. 🔥 remove(.eslintrc.json): Remove old ESLint configuration file from the project To simplify the project setup and reduce maintenance efforts, the old ESLint configuration file has been removed. This opens up opportunities to explore alternative ways to maintain code quality. 🚚 change(Dockerfile): Remove reference to .eslintrc.json from Dockerfile Following the removal of the ESLint configuration file from the project, its reference has been removed from the Dockerfile. This updates the build process and avoids copying unnecessary files. 🔥 refactor(AIProvider.ts): Improve code for safely accessing inputTokens and outputTokens in NonStreamedChatResponse Previously, the implementation used the `any` type to access `inputTokens` and `outputTokens`, which was not type-safe. The new implementation uses optional chaining and the nullish coalescing operator to safely access these values, defaulting to -1 if they are not present. This enhances the readability and safety of the code. 📦 package update(package.json): updated versions of dependencies and devDependencies Updating the versions of dependencies and devDependencies to their latest ensures that security vulnerabilities are addressed and the latest features are available. Notably, versions of "@anthropic-ai/sdk", "openai", "@swc/core", "@types/node", "@typescript-eslint/eslint-plugin", "@typescript-eslint/parser", "eslint", "tsx", and "typescript" have been updated, which is expected to improve performance and resolve compatibility issues. @anthropic-ai/sdk ^0.19.0 → ^0.20.2 @swc/core ^1.4.11 → ^1.4.13 @types/node ^20.11.30 → ^20.12.6 @typescript-eslint/eslint-plugin ^7.4.0 → ^7.6.0 @typescript-eslint/parser ^7.4.0 → ^7.6.0 eslint ^8.57.0 → ^9.0.0 openai ^4.29.2 → ^4.33.0 tsx ^4.7.1 → ^4.7.2 typescript ^5.4.3 → ^5.4.4
- Loading branch information
Showing
14 changed files
with
1,023 additions
and
1,172 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
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 was deleted.
Oops, something went wrong.
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
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.