prompty icon indicating copy to clipboard operation
prompty copied to clipboard

when running prompty through the vs code extension, can't use a json file as a sample

Open ranish8080 opened this issue 1 year ago • 4 comments

I'm running prompty through the vs code extension. My prompty configuration has a complex input which I want to load from a json file. This doesn't seem to be supported by the extension

ranish8080 avatar Sep 03 '24 12:09 ranish8080

Great question - have you tried something like this?

sethjuarez avatar Sep 04 '24 18:09 sethjuarez

It doesn't work. Interestingly enough when running the same .prompty file through the promptflow VS code extension through the test button, it works: image

ranish8080 avatar Sep 05 '24 14:09 ranish8080

Can you describe what you are doing and what error you are getting?

sethjuarez avatar Sep 05 '24 17:09 sethjuarez

I found that prompflow tries to search for files located in folders with lowercase, so, if you have a project in prompflow and the json files are located in folders named with some uppercase, prompflow can't find the file to be included (replaced) in prompty. I solve the problem renaming my folder to lowercase (I'm using WSL 2).

valegrajales avatar Oct 08 '24 02:10 valegrajales

Marking as closed - happy to reopen if there are issues.

sethjuarez avatar Oct 29 '24 17:10 sethjuarez