https://promptfoo.dev/ logo
Passing in JSON schemas for a custom javascript pr...
# ❓|questions
w
I'm hoping to test JSON mode on OctoAI. Their SDK is slightly different than other providers:
Copy code
response_format: {
    type: 'json_object',
    schema: {
      properties: { tags: { title: 'tags', type: 'string' } },
      required: ['tags'],
      title: 'GetTags',
      type: 'object',
    },
  },
I believe I'll need to set up a custom provider, but what's the best way for me to pass in this schema from a yaml file? Is there a way to do it in the current version of promptfoo or does this require an officially supported provider? Thanks!