#Using local file paths with ai_task.generate_data

1 messages · Page 1 of 1 (latest)

fossil fox
#

Hi there. As google_generative_ai_conversation.generate_content is now deprecated, I want to replace it with ai_task's generate_data tool. However I don't understand how to use it with a local file path. The documentation says that it has to be the output of the media-selector, but I don't understand how to programatically set it to a local file path. For example, here is my current code:

  - action: google_generative_ai_conversation.generate_content
    metadata: {}
    data:
      prompt: >-
        Text prompt goes here
      filenames: /config/www/tmp/doorbell-snapshot-YYmmdd-HHMMSS.mp4
    response_variable: generated_content

Is there a way to do this with with the new ai-task, programatically passing in a dynamic filename or filepath? Worst case scenario I can move the video file to my media folder if necessary, but I'd kind of like to keep my current flow if it were possible

kind meteor
#

didn't get that either.. 🙁

fossil fox
kind meteor
#

i have the same issue with local folder creation.

fossil fox
#

Oh you mean you also don't understand it?

fossil fox
#

I always find the file selector a little bit confusing when working with yaml

kind meteor
#

be patient, someone on this server will know the answer.

kind meteor
#

bump

jade marsh
kind meteor
#

@jade marsh TY, gonna check it out tomorrow! @fossil fox

kind meteor
#

does not work for me

jade marsh