Skip to content

Commit e7d1f17

Browse files
authored
[BUG] Investigate Google Gemini actions not working (#16547)
1 parent 7fefaef commit e7d1f17

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

components/google_gemini/actions/common/generate-content.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ export default {
5656
}
5757
}
5858

59-
if (Array.isArray(history) && !history?.length) {
59+
if (!history || (Array.isArray(history) && !history.length)) {
6060
return [];
6161
}
6262

63-
return history.map((itemStr) => {
63+
return history?.map((itemStr) => {
6464
let item = itemStr;
6565
if (typeof item === "string") {
6666
try {

components/google_gemini/actions/generate-content-from-text-and-image/generate-content-from-text-and-image.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
key: "google_gemini-generate-content-from-text-and-image",
1010
name: "Generate Content from Text and Image",
1111
description: "Generates content from both text and image input using the Gemini API. [See the documentation](https://ai.google.dev/tutorials/rest_quickstart#text-and-image_input)",
12-
version: "0.2.0",
12+
version: "0.2.1",
1313
type: "action",
1414
props: {
1515
...common.props,

components/google_gemini/actions/generate-content-from-text/generate-content-from-text.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "google_gemini-generate-content-from-text",
77
name: "Generate Content from Text",
88
description: "Generates content from text input using the Google Gemini API. [See the documentation](https://ai.google.dev/tutorials/rest_quickstart#text-only_input)",
9-
version: "0.2.0",
9+
version: "0.2.1",
1010
type: "action",
1111
async run({ $ }) {
1212
const {

components/google_gemini/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/google_gemini",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "Pipedream Google Gemini Components",
55
"main": "google_gemini.app.mjs",
66
"keywords": [

pnpm-lock.yaml

-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)