Closed thucpn closed 3 months ago
Latest commit: b87455bad5e0023983fce51aa27fb87b24637e70
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
This update introduces a robust image generation tool supporting both TypeScript and Python environments. It includes methods to generate, save, and handle images using an external API. Multiple related files were adjusted to support this new tool, along with additional improvements like updated ESLint configurations and new dependencies in various package.json
files.
Files/Paths | Change Summaries |
---|---|
.changeset/fifty-mugs-suffer.md |
Introduced a new image generator tool. |
helpers/tools.ts |
Added "Image Generator" tool with required environment variables. |
templates/.../typescript/agent/tools/img-gen.ts , |
Introduced ImgGeneratorTool class with methods for image generation, saving, and error handling. |
templates/.../typescript/agent/tools/index.ts |
Added ImgGeneratorTool and its parameters to the tools list. |
templates/.../python/agent/tools/__init__.py |
Updated load_tools function to pass config as arguments. |
templates/.../python/agent/tools/duckduckgo.py |
Modified get_tools function to accept keyword arguments. |
templates/.../python/agent/tools/img_gen.py |
Introduced ImageGeneratorTool class for image generation, saving, and error handling. |
templates/.../python/agent/tools/interpreter.py |
Updated E2BCodeInterpreter constructor to accept an optional api_key parameter and adjusted related logic. |
templates/.../python/agent/tools/weather.py |
Modified get_tools function to accept keyword arguments. |
templates/.../streaming/express/package.json , |
Added "form-data": "^4.0.0" dependency. |
templates/.../streaming/nextjs/package.json |
Added "form-data": "^4.0.0" , updated "got" version to ^14.4.1 . |
helpers/copy.ts |
Modified assetRelocator function for "eslintrc" without the file extension. |
templates/.../streaming/express/eslintrc |
Added rule specifying "sourceType": "module" for parserOptions in ESLint configuration. |
templates/.../streaming/express/package.json |
Updated dependencies, adjusted "main" to "exports" , added "types" , changed build script to esm , and updated dev script. |
In a realm of code so spry and neat,
New images come from prompts so sweet,
Python and TypeScript, hand in hand,
Crafting visions upon command.
With tools so grand, and bugs so beat,
Our dreams and code now both complete.
🌟🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Dependencies
"form-data": "^4.0.0"
topackage.json
for both Express and Next.js templates."got"
dependency to"^14.4.1"
in Next.js template.Bug Fixes
get_tools
functions to accept keyword arguments for better flexibility.Configuration
"sourceType": "module"
.package.json
in Express template to include"formdata-node": "^6.0.3"
and updated build scripts.