pipedream
pipedream copied to clipboard
Update APIpie components with the following:
- Updated Readme Docs
- Create Chat completions request with optional tools
- Create image
- Create text to speech
- Retrieve list of LLM models
- Retrieve list of Image models
- Retrieve list of Voice models
- Retrieve list of Voices
WHY
APipie integration was only partially built in pipedream this provides basic actions for users to generate content and include in workflows.
Summary by CodeRabbit
-
New Features
- Introduced integration with APIpie.ai, enabling unified access to multiple AI models for language, image, and voice tasks.
- Added actions to generate images from prompts, convert text to speech, send chat completion requests, and retrieve available models and voices.
- Enhanced model selection with dynamic loading of options for chat, image, and TTS models.
- Included support for configuring advanced parameters and tools in chat completions.
-
Documentation
- Added comprehensive README detailing setup, core features, and business use cases for the APIpie.ai integration.
-
Chores
- Updated package metadata and added required dependencies.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| pipedream-docs-redirect-do-not-edit | ⬜️ Ignored (Inspect) | Jun 6, 2025 6:05pm |
@Toocky is attempting to deploy a commit to the Pipedreamers Team on Vercel.
A member of the Team first needs to authorize it.
Walkthrough
This update introduces a comprehensive integration for APIpie.ai, adding a new README, a fully implemented app client, and multiple actions for listing models, generating images, converting text to speech, and sending chat completions. Supporting utility and constants modules are also included, and package metadata is updated to reflect new dependencies.
Changes
| File(s) | Change Summary |
|---|---|
| components/apipie_ai/README.md | Added a new README detailing APIpie.ai integration, usage, and business use cases. |
| components/apipie_ai/apipie_ai.app.mjs | Converted from stub to full-featured app client with prop definitions and API methods for models, images, TTS, etc. |
| components/apipie_ai/common/constants.mjs | New module exporting constants for effort levels, response formats, image sizes, tool types, etc. |
| components/apipie_ai/common/utils.mjs | New module exporting a parseObject utility for safely parsing JSON strings or arrays. |
| components/apipie_ai/package.json | Updated keywords, homepage, and added dependencies for @pipedream/platform and axios. |
| components/apipie_ai/actions/convert-text-to-speech/convert-text-to-speech.mjs | New action for generating audio from text using the APIpie AI TTS service. |
| components/apipie_ai/actions/create-image/create-image.mjs | New action for generating images from prompts via APIpie AI. |
| components/apipie_ai/actions/retrieve-available-image-models/retrieve-available-image-models.mjs | New action for listing available image models. |
| components/apipie_ai/actions/retrieve-available-llm-models/retrieve-available-llm-models.mjs | New action for listing available large language models (LLMs). |
| components/apipie_ai/actions/retrieve-available-tts-models/retrieve-available-tts-models.mjs | New action for listing available text-to-speech models. |
| components/apipie_ai/actions/retrieve-available-tts-voices/retrieve-available-tts-voices.mjs | New action for listing available TTS voices. |
| components/apipie_ai/actions/send-chat-completion-request/send-chat-completion-request.mjs | New action for sending chat completion requests to LLMs with support for function tools and advanced parameters. |
Sequence Diagram(s)
sequenceDiagram
participant User
participant Action
participant AppClient
participant APIpieAI
User->>Action: Trigger action (e.g., Create Image, TTS, Chat)
Action->>AppClient: Call relevant method (e.g., createImage, createSpeech, sendChatCompletionRequest)
AppClient->>APIpieAI: Make HTTP request to APIpie.ai endpoint
APIpieAI-->>AppClient: Return response (image, audio, chat completion, etc.)
AppClient-->>Action: Return processed result
Action-->>User: Output result (file path, image URL, response data, etc.)
Suggested labels
action, enhancement, docs, ai-assisted
Suggested reviewers
- michelle0927
Poem
In the garden of code where the AI models bloom,
New actions now flourish, dispelling the gloom.
Images appear with a prompt and a wish,
Voices are woven from text in a swish!
So hop along, dear dev, and see what’s anew—
APIpie’s delights are now waiting for you!
🐇✨
[!WARNING] There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.
🔧 ESLint
If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.
components/apipie_ai/actions/send-chat-completion-request/send-chat-completion-request.mjs
Oops! Something went wrong! :(
ESLint: 8.57.1
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs at Object.getPackageJSONURL (node:internal/modules/package_json_reader:255:9) at packageResolve (node:internal/modules/esm/resolve:767:81) at moduleResolve (node:internal/modules/esm/resolve:853:18) at defaultResolve (node:internal/modules/esm/resolve:983:11) at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:799:12) at #cachedDefaultResolve (node:internal/modules/esm/loader:723:25) at ModuleLoader.resolve (node:internal/modules/esm/loader:706:38) at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:307:38) at #link (node:internal/modules/esm/module_job:170:49)
📜 Recent review details
Configuration used: CodeRabbit UI Review profile: CHILL Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between eb985350b553ff2de1e806a64be1f6d512a93f02 and 7942a9cd1046a3e8aa9bc474ec1b76d7a8c82530.
📒 Files selected for processing (1)
components/apipie_ai/actions/send-chat-completion-request/send-chat-completion-request.mjs(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- components/apipie_ai/actions/send-chat-completion-request/send-chat-completion-request.mjs
✨ Finishing Touches
- [ ] 📝 Generate Docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
🪧 Tips
Chat
There are 3 ways to chat with CodeRabbit:
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
I pushed a fix in commit <commit_id>, please review it.Explain this complex logic.Open a follow-up GitHub issue for this discussion.
- Files and specific lines of code (under the "Files changed" tab): Tag
@coderabbitaiin a new review comment at the desired location with your query. Examples:@coderabbitai explain this code block.@coderabbitai modularize this function.
- PR comments: Tag
@coderabbitaiin a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.@coderabbitai read src/utils.ts and explain its main purpose.@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.@coderabbitai help me debug CodeRabbit configuration file.
Support
Need help? Create a ticket on our support page for assistance with any issues or questions.
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.
CodeRabbit Commands (Invoked using PR comments)
@coderabbitai pauseto pause the reviews on a PR.@coderabbitai resumeto resume the paused reviews.@coderabbitai reviewto trigger an incremental review. This is useful when automatic reviews are disabled for the repository.@coderabbitai full reviewto do a full review from scratch and review all the files again.@coderabbitai summaryto regenerate the summary of the PR.@coderabbitai generate docstringsto generate docstrings for this PR.@coderabbitai generate sequence diagramto generate a sequence diagram of the changes in this PR.@coderabbitai resolveresolve all the CodeRabbit review comments.@coderabbitai configurationto show the current CodeRabbit configuration for the repository.@coderabbitai helpto get help.
Other keywords and placeholders
- Add
@coderabbitai ignoreanywhere in the PR description to prevent this PR from being reviewed. - Add
@coderabbitai summaryto generate the high-level summary at a specific location in the PR description. - Add
@coderabbitaianywhere in the PR title to generate the title automatically.
CodeRabbit Configuration File (.coderabbit.yaml)
- You can programmatically configure CodeRabbit by adding a
.coderabbit.yamlfile to the root of your repository. - Please see the configuration documentation for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation:
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
Documentation and Community
- Visit our Documentation for detailed information on how to use CodeRabbit.
- Join our Discord Community to get help, request features, and share feedback.
- Follow us on X/Twitter for updates and announcements.
Thank you so much for submitting this! We've added it to our backlog to review, and our team has been notified.
Thanks for submitting this PR! When we review PRs, we follow the Pipedream component guidelines. If you're not familiar, here's a quick checklist:
- [ ] Create components to address specific use cases whenever possible
- [ ] Component
keys should follow the formatapp_name_slug-slugified-component-name - [ ] Components should follow the standard directory structure
- [ ] Prefer Node.js client libraries to REST APIs
- [ ] When making API requests, handle pagination to ensure all data / events are processed
- [ ] Use
secretprops to capture sensitive data - [ ] Props and methods should be defined in app files whenever possible
- [ ] Document methods with JS Docs
- [ ] Use
optionalprops whenever possible, and set adefaultvalue where you can - [ ] Use async options to accept user input wherever possible