Template API

GET https://llmfoundry.straive.com/template/<template-name>?key=value&... runs the template-name and returns the JSON response. To use this:

  1. Use the Playground to create a template. Click on Insert 🔑VAR to add variables.
  2. Save the template giving it a name
  3. Test the template on the Templates page
  4. Open the URL https://llmfoundry.straive.com/template/<template-name>?key=value&... where:
    • template-name is the name of the template you saved
    • key=value are the variables you want to pass to the template. E.g., if you added 🔑Email then pass Email=...

The response is a JSON object with the template's output, without streaming.

Templates page

The Templates page shows all templates shared by the LLM Foundry community.

It shows:

  • The template name
  • System prompt
  • User prompt
  • Author
  • Date last modified
  • Model used

You can sort by

  • Latest first
  • Largest first
  • Model A-Z
  • Author A-Z