Skip to content

Commit 5040eb9

Browse files
authored
release-ai-modelinference/2025-04-01 (#33549)
1 parent bb7865f commit 5040eb9

29 files changed

+4555
-61
lines changed
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
2+
"title": "Audio modality chat completion",
3+
"operationId": "GetChatCompletions",
4+
"parameters": {
5+
"api-version": "2025-04-01",
6+
"extra-parameters": "error",
7+
"body": {
8+
"modalities": [
9+
"text",
10+
"audio"
11+
],
12+
"messages": [
13+
{
14+
"role": "system",
15+
"content": "You are a helpful assistant"
16+
},
17+
{
18+
"role": "user",
19+
"content": [
20+
{
21+
"type": "input_audio",
22+
"input_audio": {
23+
"data": "<base64 encoded audio data>",
24+
"format": "wav"
25+
}
26+
}
27+
]
28+
},
29+
{
30+
"role": "assistant",
31+
"content": null,
32+
"audio": {
33+
"id": "abcdef1234"
34+
}
35+
},
36+
{
37+
"role": "user",
38+
"content": [
39+
{
40+
"type": "input_audio",
41+
"input_audio": {
42+
"data": "<base64 encoded audio data>",
43+
"format": "wav"
44+
}
45+
}
46+
]
47+
}
48+
],
49+
"frequency_penalty": 0,
50+
"presence_penalty": 0,
51+
"temperature": 0,
52+
"top_p": 0,
53+
"seed": 21,
54+
"model": "my-model-name"
55+
}
56+
},
57+
"responses": {
58+
"200": {
59+
"body": {
60+
"id": "kgousajxgzyhugvqekuswuqbk",
61+
"object": "chat.completion",
62+
"created": 1696522361,
63+
"model": "my-model-name",
64+
"usage": {
65+
"completion_tokens": 19,
66+
"prompt_tokens": 28,
67+
"total_tokens": 16,
68+
"completion_tokens_details": {
69+
"audio_tokens": 5,
70+
"reasoning_tokens": 0,
71+
"total_tokens": 5
72+
},
73+
"prompt_tokens_details": {
74+
"audio_tokens": 10,
75+
"cached_tokens": 0
76+
}
77+
},
78+
"choices": [
79+
{
80+
"index": 0,
81+
"finish_reason": "stop",
82+
"message": {
83+
"role": "assistant",
84+
"content": null,
85+
"tool_calls": null,
86+
"audio": {
87+
"id": "abcdef1234",
88+
"format": "wav",
89+
"data": "<base64 encoded audio data>",
90+
"expires_at": 1896522361,
91+
"transcript": "This is a sample transcript"
92+
}
93+
}
94+
}
95+
]
96+
}
97+
}
98+
}
99+
}
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"title": "maximum set chat completion",
3+
"operationId": "GetChatCompletions",
4+
"parameters": {
5+
"api-version": "2025-04-01",
6+
"extra-parameters": "error",
7+
"body": {
8+
"modalities": [
9+
"text"
10+
],
11+
"messages": [
12+
{
13+
"role": "system",
14+
"content": "You are a helpful assistant"
15+
},
16+
{
17+
"role": "user",
18+
"content": "Explain Riemann's conjecture"
19+
},
20+
{
21+
"role": "assistant",
22+
"content": "The Riemann Conjecture is a deep mathematical conjecture around prime numbers and how they can be predicted. It was first published in Riemann's groundbreaking 1859 paper. The conjecture states that the Riemann zeta function has its zeros only at the negative even integers and complex numbers with real part 1/21. Many consider it to be the most important unsolved problem in pure mathematics. The Riemann hypothesis is a way to predict the probability that numbers in a certain range are prime that was also devised by German mathematician Bernhard Riemann in 18594."
23+
},
24+
{
25+
"role": "user",
26+
"content": "Ist it proved?"
27+
}
28+
],
29+
"frequency_penalty": 0,
30+
"stream": true,
31+
"presence_penalty": 0,
32+
"temperature": 0,
33+
"top_p": 0,
34+
"max_tokens": 255,
35+
"response_format": {
36+
"type": "text"
37+
},
38+
"stop": [
39+
"<|endoftext|>"
40+
],
41+
"tools": [
42+
{
43+
"type": "function",
44+
"function": {
45+
"name": "my-function-name",
46+
"description": "A function useful to know if a theroem is proved or not"
47+
}
48+
}
49+
],
50+
"seed": 21,
51+
"model": "my-model-name"
52+
}
53+
},
54+
"responses": {
55+
"200": {
56+
"body": {
57+
"id": "kgousajxgzyhugvqekuswuqbk",
58+
"object": "chat.completion",
59+
"created": 18,
60+
"model": "my-model-name",
61+
"usage": {
62+
"completion_tokens": 19,
63+
"prompt_tokens": 28,
64+
"total_tokens": 16,
65+
"completion_tokens_details": {
66+
"audio_tokens": 5,
67+
"reasoning_tokens": 0,
68+
"total_tokens": 5
69+
}
70+
},
71+
"choices": [
72+
{
73+
"index": 7,
74+
"finish_reason": "stop",
75+
"message": {
76+
"role": "assistant",
77+
"content": null,
78+
"reasoning_content": null,
79+
"tool_calls": [
80+
{
81+
"id": "yrobmilsrugmbwukmzo",
82+
"type": "function",
83+
"function": {
84+
"name": "my-function-name",
85+
"arguments": "{ \"arg1\": \"value1\", \"arg2\": \"value2\" }"
86+
}
87+
}
88+
]
89+
}
90+
}
91+
]
92+
}
93+
}
94+
}
95+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"title": "minimum set chat completion",
3+
"operationId": "GetChatCompletions",
4+
"parameters": {
5+
"api-version": "2025-04-01",
6+
"body": {
7+
"messages": [
8+
{
9+
"role": "user",
10+
"content": "Explain Riemann's conjecture"
11+
}
12+
]
13+
}
14+
},
15+
"responses": {
16+
"200": {
17+
"body": {
18+
"id": "kgousajxgzyhugvqekuswuqbk",
19+
"object": "chat.completion",
20+
"created": 1234567890,
21+
"model": "my-model-name",
22+
"usage": {
23+
"prompt_tokens": 205,
24+
"completion_tokens": 5,
25+
"total_tokens": 210
26+
},
27+
"choices": [
28+
{
29+
"index": 0,
30+
"finish_reason": "stop",
31+
"message": {
32+
"role": "assistant",
33+
"content": "The Riemann Conjecture is a deep mathematical conjecture around prime numbers and how they can be predicted. It was first published in Riemann's groundbreaking 1859 paper. The conjecture states that the Riemann zeta function has its zeros only at the negative even integers and complex numbers with real part 1/21. Many consider it to be the most important unsolved problem in pure mathematics. The Riemann hypothesis is a way to predict the probability that numbers in a certain range are prime that was also devised by German mathematician Bernhard Riemann in 18594"
34+
}
35+
}
36+
]
37+
}
38+
}
39+
}
40+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"title": "maximum set embeddings",
3+
"operationId": "GetEmbeddings",
4+
"parameters": {
5+
"api-version": "2025-04-01",
6+
"extra-parameters": "error",
7+
"body": {
8+
"input": [
9+
"This is a very good text"
10+
],
11+
"dimensions": 1024,
12+
"encoding_format": "float",
13+
"input_type": "text",
14+
"model": "my-model-name"
15+
}
16+
},
17+
"responses": {
18+
"200": {
19+
"body": {
20+
"id": "cknxthfa",
21+
"data": [
22+
{
23+
"index": 0,
24+
"object": "embedding",
25+
"embedding": [
26+
0,
27+
0,
28+
0,
29+
0,
30+
0,
31+
0,
32+
0,
33+
0,
34+
0,
35+
0,
36+
0,
37+
0
38+
]
39+
}
40+
],
41+
"object": "list",
42+
"model": "my-model-name",
43+
"usage": {
44+
"prompt_tokens": 15,
45+
"total_tokens": 15
46+
}
47+
}
48+
}
49+
}
50+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"title": "minimum set embeddings",
3+
"operationId": "GetEmbeddings",
4+
"parameters": {
5+
"api-version": "2025-04-01",
6+
"body": {
7+
"input": [
8+
"This is a very good text"
9+
]
10+
}
11+
},
12+
"responses": {
13+
"200": {
14+
"body": {
15+
"id": "cknxthfa",
16+
"data": [
17+
{
18+
"index": 0,
19+
"object": "embedding",
20+
"embedding": [
21+
0,
22+
0,
23+
0,
24+
0,
25+
0,
26+
0,
27+
0,
28+
0,
29+
0,
30+
0,
31+
0,
32+
0
33+
]
34+
}
35+
],
36+
"object": "list",
37+
"model": "my-model-name",
38+
"usage": {
39+
"prompt_tokens": 15,
40+
"total_tokens": 15
41+
}
42+
}
43+
}
44+
}
45+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"title": "maximum set image embeddings",
3+
"operationId": "GetImageEmbeddings",
4+
"parameters": {
5+
"api-version": "2025-04-01",
6+
"extra-parameters": "error",
7+
"body": {
8+
"input": [
9+
{
10+
"image": "puqkvvlvgcjyzughesnkena",
11+
"text": "azrzyjsmnuefqpowpvfmyobeehqsni"
12+
}
13+
],
14+
"dimensions": 1024,
15+
"encoding_format": "float",
16+
"input_type": "text",
17+
"model": "my-model-name"
18+
}
19+
},
20+
"responses": {
21+
"200": {
22+
"body": {
23+
"id": "cknxthfa",
24+
"data": [
25+
{
26+
"index": 0,
27+
"object": "embedding",
28+
"embedding": [
29+
0,
30+
0,
31+
0,
32+
0,
33+
0,
34+
0,
35+
0,
36+
0,
37+
0,
38+
0,
39+
0,
40+
0
41+
]
42+
}
43+
],
44+
"object": "list",
45+
"model": "my-model-name",
46+
"usage": {
47+
"prompt_tokens": 15,
48+
"total_tokens": 15
49+
}
50+
}
51+
}
52+
}
53+
}

0 commit comments

Comments
 (0)