Skip to content

Commit 177f618

Browse files
committed
add output json
1 parent 08a3fef commit 177f618

File tree

1 file changed

+94
-0
lines changed

1 file changed

+94
-0
lines changed

articles/ai-services/openai/how-to/model-router.md

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,100 @@ In the [Azure AI Foundry portal](https://ai.azure.com/), you can navigate to you
4040
> [!IMPORTANT]
4141
> The `reasoning_effort` parameter (see the [Reasoning models guide](/azure/ai-services/openai/how-to/reasoning?tabs=python-secure#reasoning-effort)) isn't supported in model router. If the model router selects a reasoning model for your prompt, it also selects a `reasoning_effort` input value based on the complexity of the prompt.
4242
43+
### Output format
44+
45+
The JSON response you receive from a model router model looks like the following.
46+
47+
```json
48+
{
49+
"choices": [
50+
{
51+
"content_filter_results": {
52+
"hate": {
53+
"filtered": "False",
54+
"severity": "safe"
55+
},
56+
"protected_material_code": {
57+
"detected": "False",
58+
"filtered": "False"
59+
},
60+
"protected_material_text": {
61+
"detected": "False",
62+
"filtered": "False"
63+
},
64+
"self_harm": {
65+
"filtered": "False",
66+
"severity": "safe"
67+
},
68+
"sexual": {
69+
"filtered": "False",
70+
"severity": "safe"
71+
},
72+
"violence": {
73+
"filtered": "False",
74+
"severity": "safe"
75+
}
76+
},
77+
"finish_reason": "stop",
78+
"index": 0,
79+
"logprobs": "None",
80+
"message": {
81+
"content": "I'm doing well, thank you! How can I assist you today?",
82+
"refusal": "None",
83+
"role": "assistant"
84+
}
85+
}
86+
],
87+
"created": 1745308617,
88+
"id": "xxxx-yyyy-zzzz",
89+
"model": "gpt-4.1-nano-2025-04-14",
90+
"object": "chat.completion",
91+
"prompt_filter_results": [
92+
{
93+
"content_filter_results": {
94+
"hate": {
95+
"filtered": "False",
96+
"severity": "safe"
97+
},
98+
"jailbreak": {
99+
"detected": "False",
100+
"filtered": "False"
101+
},
102+
"self_harm": {
103+
"filtered": "False",
104+
"severity": "safe"
105+
},
106+
"sexual": {
107+
"filtered": "False",
108+
"severity": "safe"
109+
},
110+
"violence": {
111+
"filtered": "False",
112+
"severity": "safe"
113+
}
114+
},
115+
"prompt_index": 0
116+
}
117+
],
118+
"system_fingerprint": "xxxx",
119+
"usage": {
120+
"completion_tokens": 15,
121+
"completion_tokens_details": {
122+
"accepted_prediction_tokens": 0,
123+
"audio_tokens": 0,
124+
"reasoning_tokens": 0,
125+
"rejected_prediction_tokens": 0
126+
},
127+
"prompt_tokens": 21,
128+
"prompt_tokens_details": {
129+
"audio_tokens": 0,
130+
"cached_tokens": 0
131+
},
132+
"total_tokens": 36
133+
}
134+
}
135+
```
136+
43137

44138
## Evaluate model router performance
45139

0 commit comments

Comments
 (0)