@ai-sdk/azure 3.0.13 → 3.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +6 -5
- package/src/__fixtures__/azure-code-interpreter-tool.1.chunks.txt +341 -0
- package/src/__fixtures__/azure-code-interpreter-tool.1.json +90 -0
- package/src/__fixtures__/azure-image-generation-tool.1.chunks.txt +41 -0
- package/src/__fixtures__/azure-image-generation-tool.1.json +88 -0
- package/src/__fixtures__/azure-reasoning-encrypted-content.1.chunks.txt +167 -0
- package/src/__fixtures__/azure-reasoning-encrypted-content.1.json +114 -0
- package/src/__fixtures__/azure-web-search-preview-tool.1.chunks.txt +359 -0
- package/src/__fixtures__/azure-web-search-preview-tool.1.json +103 -0
- package/src/__fixtures__/openai-file-search-tool.1.chunks.txt +94 -0
- package/src/__fixtures__/openai-file-search-tool.1.json +89 -0
- package/src/__fixtures__/openai-file-search-tool.2.chunks.txt +93 -0
- package/src/__fixtures__/openai-file-search-tool.2.json +112 -0
- package/src/__snapshots__/azure-openai-provider.test.ts.snap +6910 -0
- package/src/azure-openai-provider-metadata.ts +12 -0
- package/src/azure-openai-provider.test.ts +1869 -0
- package/src/azure-openai-provider.ts +273 -0
- package/src/azure-openai-tools.ts +18 -0
- package/src/index.ts +15 -0
- package/src/version.ts +6 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "resp_02ffbc38ae6fca1a0068ec87605cfc819793efdf27e5496675",
|
|
3
|
+
"object": "response",
|
|
4
|
+
"created_at": 1760331616,
|
|
5
|
+
"status": "completed",
|
|
6
|
+
"background": false,
|
|
7
|
+
"content_filters": null,
|
|
8
|
+
"error": null,
|
|
9
|
+
"incomplete_details": null,
|
|
10
|
+
"instructions": null,
|
|
11
|
+
"max_output_tokens": null,
|
|
12
|
+
"max_tool_calls": null,
|
|
13
|
+
"model": "gpt-5-mini",
|
|
14
|
+
"output": [
|
|
15
|
+
{
|
|
16
|
+
"id": "rs_02ffbc38ae6fca1a0068ec8762f61881979bf5191564930c23",
|
|
17
|
+
"type": "reasoning",
|
|
18
|
+
"summary": []
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": "ci_02ffbc38ae6fca1a0068ec876654a08197af4d648fe8bba210",
|
|
22
|
+
"type": "code_interpreter_call",
|
|
23
|
+
"status": "completed",
|
|
24
|
+
"code": "import random\n\n# Generate five random numbers between 1 and 100 with two decimal places\nnumbers = [round(random.uniform(1, 100), 2) for _ in range(5)]\n\n# Print the program and its execution results\nprint(\"Program: Generate five random numbers between 1 and 100 with two decimal places\")\nprint(\"Generated numbers:\")\nfor i, num in enumerate(numbers, start=1):\n print(f\"{i}: {num:.2f}\")",
|
|
25
|
+
"container_id": "cntr_68ec87613e58819097ec47888dc686d8088a1d37157e7565",
|
|
26
|
+
"outputs": [
|
|
27
|
+
{
|
|
28
|
+
"type": "logs",
|
|
29
|
+
"logs": "Program: Generate five random numbers between 1 and 100 with two decimal places\nGenerated numbers:\n1: 74.07\n2: 94.14\n3: 53.74\n4: 77.29\n5: 87.68\n"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "msg_02ffbc38ae6fca1a0068ec8768f35c81979428e19fa11468f1",
|
|
35
|
+
"type": "message",
|
|
36
|
+
"status": "completed",
|
|
37
|
+
"content": [
|
|
38
|
+
{
|
|
39
|
+
"type": "output_text",
|
|
40
|
+
"annotations": [],
|
|
41
|
+
"logprobs": [],
|
|
42
|
+
"text": "I ran the program and produced five random numbers between 1 and 100 with two decimal places. Results shown above:\n\n1: 74.07\n2: 94.14\n3: 53.74\n4: 77.29\n5: 87.68\n\nIf you want the code to be saved to a file, run multiple sets, or use a fixed seed for reproducible results, tell me and I can adjust."
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"role": "assistant"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"parallel_tool_calls": true,
|
|
49
|
+
"previous_response_id": null,
|
|
50
|
+
"prompt_cache_key": null,
|
|
51
|
+
"reasoning": {
|
|
52
|
+
"effort": "medium",
|
|
53
|
+
"summary": null
|
|
54
|
+
},
|
|
55
|
+
"safety_identifier": null,
|
|
56
|
+
"service_tier": "default",
|
|
57
|
+
"store": true,
|
|
58
|
+
"temperature": 1,
|
|
59
|
+
"text": {
|
|
60
|
+
"format": {
|
|
61
|
+
"type": "text"
|
|
62
|
+
},
|
|
63
|
+
"verbosity": "medium"
|
|
64
|
+
},
|
|
65
|
+
"tool_choice": "auto",
|
|
66
|
+
"tools": [
|
|
67
|
+
{
|
|
68
|
+
"type": "code_interpreter",
|
|
69
|
+
"container": {
|
|
70
|
+
"type": "auto"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"top_logprobs": 0,
|
|
75
|
+
"top_p": 1,
|
|
76
|
+
"truncation": "disabled",
|
|
77
|
+
"usage": {
|
|
78
|
+
"input_tokens": 1750,
|
|
79
|
+
"input_tokens_details": {
|
|
80
|
+
"cached_tokens": 0
|
|
81
|
+
},
|
|
82
|
+
"output_tokens": 400,
|
|
83
|
+
"output_tokens_details": {
|
|
84
|
+
"reasoning_tokens": 192
|
|
85
|
+
},
|
|
86
|
+
"total_tokens": 2150
|
|
87
|
+
},
|
|
88
|
+
"user": null,
|
|
89
|
+
"metadata": {}
|
|
90
|
+
}
|