Skip to content

Commit f56d5c3

Browse files
committed
reformatted JSON
1 parent 51f7d9d commit f56d5c3

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

articles/api-management/openai-compatible-llm-api.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,20 @@ After importing the API, you can test it using the test console in the Azure por
133133
1. In the **Request body** section, enter the following JSON to specify the model and an example prompt. In this example, the OpenAI-compatible `gemini-2.0-flash` model is used.
134134

135135
```json
136-
{"model":"gpt-4o","messages":[{"role":"system","content":"You are a helpful assistant"},{"role":"user","content":"How are you?"}],"max_tokens":50}
136+
{
137+
"model": "gpt-4o",
138+
"messages": [
139+
{
140+
"role": "system",
141+
"content": "You are a helpful assistant"
142+
},
143+
{
144+
"role": "user",
145+
"content": "How are you?"
146+
}
147+
],
148+
"max_tokens": 50
149+
}
137150
```
138151

139152
When the test is successful, the backend responds with a successful HTTP response code and some data. Appended to the response is token usage data to help you monitor and manage your language model token consumption.

0 commit comments

Comments
 (0)