fireworks-ai
response_format
param. Just pass your grammar definition with {"type": "grammar", "grammar": grammar_definition}
Let’s say you want to classify patient requests into 3 pre-defined classes:
portkey.prompts.completions.create
interface to use the prompt in your application.