# promptfoo llm-rubric graded by a self-hosted OpenAI-compatible model (grader set via defaultTest.options.provider).
description: local judge test
prompts: ["{{q}}"]
providers:
  - id: openai:chat:llama3.1:8b
    config: { apiBaseUrl: "http://127.0.0.1:18766/v1", apiKey: "local-dummy" }
defaultTest:
  options:
    provider:
      id: openai:chat:llama3.1:8b
      config: { apiBaseUrl: "http://127.0.0.1:18766/v1", apiKey: "local-dummy" }
tests:
  - vars: { q: "What is the refund window for shoes?" }
    assert:
      - type: llm-rubric
        value: "States a 30-day refund window"
