https://www.boundaryml.com logo
BAML playground crashing when template_string in t...
# help
y
I have a long prompt that I want to test in several tests. So I decided to use a template_string to make working with the tests easier:
Copy code
baml
template_string SampleTemplate() #"
# Landing Page Template
...
"#


function GenerateSpecificationFromTemplate...


test SimpleQuestion {
  functions [GenerateSpecificationFromTemplate]
  args {
    messages [
      {
        role "user"
        content #"
          {{ SampleTemplate() }}
        "#
      }
    ...
Attached is the error I get in my Windsurf Output window. 3 Questions: 1) Are template_strings not supported in this manner? Is there a correct way to do this? 2) I get this error, but even after I revert the changes that caused it, I have to restart Windsurf. I then run the test and it hangs forever. I restart a couple more times before Playground works. Is there a more efficient way of doing that? (Already did this exact procedure twice) https://cdn.discordapp.com/attachments/1437560140701106176/1437560140881727518/message.txt?ex=694082b6&is=693f3136&hm=f6831c74d9f687905ed94758eae29422bbca56663e171642de43331e4591394c&
a
Tests dont support template strings yet unfortunately!
The test hanging forever we are looking into! Do you also get test hangs if you use baml-cli test?
y
I have not tried.
a
we patched the tests hanging in 0.214.0