Skip to content

Commit ff65ebe

Browse files
glecarosdargilco
andauthored
Switching to consume new OpenAI TypeSpec package. (#39479)
* Switching to consume new OpenAI TypeSpec package. * update swagger after reunning 'npx tsv .' --------- Co-authored-by: Darren Cohen <39422044+dargilco@users.noreply.github.com>
1 parent 8f82241 commit ff65ebe

File tree

56 files changed

+19333
-27122
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+19333
-27122
lines changed

package-lock.json

Lines changed: 16 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"@azure-tools/typespec-client-generator-cli": "0.31.0",
1313
"@azure-tools/typespec-client-generator-core": "0.63.3",
1414
"@azure-tools/typespec-liftr-base": "0.10.0",
15+
"@azure-tools/openai-typespec":"^0.1.9",
1516
"@autorest/openapi-to-typespec": "0.11.12",
1617
"@azure/avocado": "0.10.5",
1718
"@azure/oad": "0.12.3",

specification/ai/Foundry/.external-readonly/azure.openai.v1.typespec/models/responses.tsp

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import "../../openai.external.typespec/responses/models.tsp";
1+
import "@azure-tools/openai-typespec/models/responses";
22

33
using Azure.Core.Experimental;
44

@@ -26,7 +26,7 @@ namespace AzureOpenAI;
2626
// Note: this substitution removes OpenAI-local doc links.
2727
@@doc(OpenAI.CreateResponse.tools,
2828
"""
29-
An array of tools the model may call while generating a response. You
29+
An array of tools the model may call while generating a response. You
3030
can specify which tool to use by setting the `tool_choice` parameter.
3131
3232
The two categories of tools you can provide the model are:
@@ -38,24 +38,24 @@ namespace AzureOpenAI;
3838
"""
3939
);
4040

41-
@@doc(OpenAI.ResponseWebSearchCallCompletedEvent,
42-
"Note: web_search is not yet available via Azure OpenAI."
43-
);
44-
@@doc(OpenAI.ResponseWebSearchCallInProgressEvent,
45-
"Note: web_search is not yet available via Azure OpenAI."
46-
);
47-
@@doc(OpenAI.ResponseWebSearchCallSearchingEvent,
48-
"Note: web_search is not yet available via Azure OpenAI."
49-
);
50-
@@doc(OpenAI.WebSearchPreviewTool,
51-
"Note: web_search is not yet available via Azure OpenAI."
52-
);
53-
@@doc(OpenAI.ToolChoiceObjectWebSearch,
54-
"Note: web_search is not yet available via Azure OpenAI."
55-
);
56-
@@doc(OpenAI.WebSearchToolCallItemParam,
57-
"Note: web_search is not yet available via Azure OpenAI."
58-
);
59-
@@doc(OpenAI.WebSearchToolCallItemResource,
60-
"Note: web_search is not yet available via Azure OpenAI."
61-
);
41+
// @@doc(OpenAI.ResponseWebSearchCallCompletedEvent,
42+
// "Note: web_search is not yet available via Azure OpenAI."
43+
// );
44+
// @@doc(OpenAI.ResponseWebSearchCallInProgressEvent,
45+
// "Note: web_search is not yet available via Azure OpenAI."
46+
// );
47+
// @@doc(OpenAI.ResponseWebSearchCallSearchingEvent,
48+
// "Note: web_search is not yet available via Azure OpenAI."
49+
// );
50+
// @@doc(OpenAI.WebSearchPreviewTool,
51+
// "Note: web_search is not yet available via Azure OpenAI."
52+
// );
53+
// @@doc(OpenAI.ToolChoiceObjectWebSearch,
54+
// "Note: web_search is not yet available via Azure OpenAI."
55+
// );
56+
// @@doc(OpenAI.WebSearchToolCallItemParam,
57+
// "Note: web_search is not yet available via Azure OpenAI."
58+
// );
59+
// @@doc(OpenAI.WebSearchToolCallItemResource,
60+
// "Note: web_search is not yet available via Azure OpenAI."
61+
// );

specification/ai/Foundry/.external-readonly/openai.external.typespec/audio/main.tsp

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)