[PR #135] [MERGED] feat: image generator tool #283

Closed
opened 2026-02-15 19:17:02 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/run-llama/create-llama/pull/135
Author: @thucpn
Created: 6/20/2024
Status: Merged
Merged: 6/24/2024
Merged by: @marcusschiesser

Base: mainHead: feat/image-generator-tool


📝 Commits (9)

  • 7ee3a51 feat: image generator tool
  • e8828de fix: lint
  • 74429c9 Create fifty-mugs-suffer.md
  • 5096720 add support for python
  • b7c9d95 add construct tool env var from config
  • ffd2f9b add method to prepare output directory in ImageGeneratorTool
  • 07a66fc refactor: support full esm for express template (#137)
  • 9a7a8c3 change to eslintrc.json file
  • b87455b remove change from copy.ts

📊 Changes

13 files changed (+272 additions, -14 deletions)

View changed files

.changeset/fifty-mugs-suffer.md (+5 -0)
📝 helpers/tools.ts (+18 -0)
📝 templates/components/engines/python/agent/tools/__init__.py (+1 -1)
📝 templates/components/engines/python/agent/tools/duckduckgo.py (+1 -1)
templates/components/engines/python/agent/tools/img_gen.py (+108 -0)
📝 templates/components/engines/python/agent/tools/interpreter.py (+5 -4)
📝 templates/components/engines/python/agent/tools/weather.py (+1 -1)
templates/components/engines/typescript/agent/tools/img-gen.ts (+112 -0)
📝 templates/components/engines/typescript/agent/tools/index.ts (+4 -0)
📝 templates/types/streaming/express/eslintrc.json (+3 -0)
📝 templates/types/streaming/express/package.json (+11 -5)
📝 templates/types/streaming/express/prettier.config.cjs (+0 -0)
📝 templates/types/streaming/nextjs/package.json (+3 -2)

📄 Description

Summary by CodeRabbit

  • New Features

    • Introduced an Image Generator tool for creating images from prompts using an external API.
  • Dependencies

    • Added "form-data": "^4.0.0" to package.json for both Express and Next.js templates.
    • Updated "got" dependency to "^14.4.1" in Next.js template.
  • Bug Fixes

    • Modified various get_tools functions to accept keyword arguments for better flexibility.
  • Configuration

    • Updated ESLint configuration for Express types to use "sourceType": "module".
    • Adjusted package.json in Express template to include "formdata-node": "^6.0.3" and updated build scripts.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/create-llama/pull/135 **Author:** [@thucpn](https://github.com/thucpn) **Created:** 6/20/2024 **Status:** ✅ Merged **Merged:** 6/24/2024 **Merged by:** [@marcusschiesser](https://github.com/marcusschiesser) **Base:** `main` ← **Head:** `feat/image-generator-tool` --- ### 📝 Commits (9) - [`7ee3a51`](https://github.com/run-llama/create-llama/commit/7ee3a514890f7b521ea33f7f55c8775dfba40956) feat: image generator tool - [`e8828de`](https://github.com/run-llama/create-llama/commit/e8828de8b803481407de9ac2faf9f1b84054d2e7) fix: lint - [`74429c9`](https://github.com/run-llama/create-llama/commit/74429c9e4904398fa414423afb28891634e23bf5) Create fifty-mugs-suffer.md - [`5096720`](https://github.com/run-llama/create-llama/commit/5096720e567a35cebf707626d4c418380ae1ef3d) add support for python - [`b7c9d95`](https://github.com/run-llama/create-llama/commit/b7c9d95787b673ab95bd3c1215d87ac8e678ac6e) add construct tool env var from config - [`ffd2f9b`](https://github.com/run-llama/create-llama/commit/ffd2f9bd270445c8960cf16b46bf1a0916d6a384) add method to prepare output directory in ImageGeneratorTool - [`07a66fc`](https://github.com/run-llama/create-llama/commit/07a66fc2bb2d75d1de1c1b55c3d0565faa4ae05f) refactor: support full esm for express template (#137) - [`9a7a8c3`](https://github.com/run-llama/create-llama/commit/9a7a8c37e6ec20adb389e01b2ec5b7eab0f014eb) change to eslintrc.json file - [`b87455b`](https://github.com/run-llama/create-llama/commit/b87455bad5e0023983fce51aa27fb87b24637e70) remove change from copy.ts ### 📊 Changes **13 files changed** (+272 additions, -14 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/fifty-mugs-suffer.md` (+5 -0) 📝 `helpers/tools.ts` (+18 -0) 📝 `templates/components/engines/python/agent/tools/__init__.py` (+1 -1) 📝 `templates/components/engines/python/agent/tools/duckduckgo.py` (+1 -1) ➕ `templates/components/engines/python/agent/tools/img_gen.py` (+108 -0) 📝 `templates/components/engines/python/agent/tools/interpreter.py` (+5 -4) 📝 `templates/components/engines/python/agent/tools/weather.py` (+1 -1) ➕ `templates/components/engines/typescript/agent/tools/img-gen.ts` (+112 -0) 📝 `templates/components/engines/typescript/agent/tools/index.ts` (+4 -0) 📝 `templates/types/streaming/express/eslintrc.json` (+3 -0) 📝 `templates/types/streaming/express/package.json` (+11 -5) 📝 `templates/types/streaming/express/prettier.config.cjs` (+0 -0) 📝 `templates/types/streaming/nextjs/package.json` (+3 -2) </details> ### 📄 Description <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced an Image Generator tool for creating images from prompts using an external API. - **Dependencies** - Added `"form-data": "^4.0.0"` to `package.json` for both Express and Next.js templates. - Updated `"got"` dependency to `"^14.4.1"` in Next.js template. - **Bug Fixes** - Modified various `get_tools` functions to accept keyword arguments for better flexibility. - **Configuration** - Updated ESLint configuration for Express types to use `"sourceType": "module"`. - Adjusted `package.json` in Express template to include `"formdata-node": "^6.0.3"` and updated build scripts. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 19:17:02 -05:00
yindo closed this issue 2026-02-15 19:17:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/create-llama#283