policies

Enrich Policy Template Stream

Stream competitor names as SSE events as the LLM generates them.

Events:

  • data: {"type": "competitor", "name": "..."} — each competitor as discovered
  • data: {"type": "done", "competitors": [...], "competitor_variations": {...}, "guardrailDefinitions": [...]}
post/policy/templates/enrich/stream

Request

  • Base URL: https://docs.litellm.com.cn (the document declares no server; this is the origin it was published from)
  • URL: https://docs.litellm.com.cn/policy/templates/enrich/stream
  • Auth: API key in header x-litellm-api-key

Request body

competitorsstring[] nullable

Optional list of competitor names

instructionstring nullable

Refinement instruction for modifying the competitor list (e.g. 'add 10 more from Asia')

modelstring nullable
parametersobject required
template_idstring required

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.