From 2abd640d4e602bb9f922b57a37ec64cf60d04c18 Mon Sep 17 00:00:00 2001 From: Jose Alvarez Date: Tue, 11 Jul 2023 16:39:44 +0000 Subject: [PATCH 1/3] Added config for Functions --- specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml b/specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml index b3d1870826b6..060f9374cdd1 100644 --- a/specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml +++ b/specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml @@ -23,6 +23,8 @@ options: partial-update: true enable-sync-stack: true generate-tests: false + custom-types-subpackage: "implementation" + custom-types: "FunctionCall,FunctionCallModelBase,FunctionCallPreset,FunctionCallPresetFunctionCallModel,FunctionDefinition,FunctionNameFunctionCallModel" # "@azure-tools/typespec-ts": # package-dir: "azure-ai-openai" # emitter-output-dir: "{project-root}/generated" From d2719f9b943b226595deaa1852b5ad96544d2779 Mon Sep 17 00:00:00 2001 From: Jose Alvarez Date: Wed, 12 Jul 2023 00:21:30 +0000 Subject: [PATCH 2/3] Specified the package further --- specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml b/specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml index 060f9374cdd1..20ef66b79512 100644 --- a/specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml +++ b/specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml @@ -23,7 +23,7 @@ options: partial-update: true enable-sync-stack: true generate-tests: false - custom-types-subpackage: "implementation" + custom-types-subpackage: "implementation.models" custom-types: "FunctionCall,FunctionCallModelBase,FunctionCallPreset,FunctionCallPresetFunctionCallModel,FunctionDefinition,FunctionNameFunctionCallModel" # "@azure-tools/typespec-ts": # package-dir: "azure-ai-openai" From 76d95640302e712c11caa6a100706c9b0f6814d1 Mon Sep 17 00:00:00 2001 From: Jose Alvarez Date: Thu, 13 Jul 2023 16:38:46 +0000 Subject: [PATCH 3/3] Removed FunctionCall --- specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml b/specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml index 20ef66b79512..29557c0d3375 100644 --- a/specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml +++ b/specification/cognitiveservices/OpenAI.Inference/tspconfig.yaml @@ -24,7 +24,7 @@ options: enable-sync-stack: true generate-tests: false custom-types-subpackage: "implementation.models" - custom-types: "FunctionCall,FunctionCallModelBase,FunctionCallPreset,FunctionCallPresetFunctionCallModel,FunctionDefinition,FunctionNameFunctionCallModel" + custom-types: "FunctionCallModelBase,FunctionCallPreset,FunctionCallPresetFunctionCallModel,FunctionDefinition,FunctionNameFunctionCallModel" # "@azure-tools/typespec-ts": # package-dir: "azure-ai-openai" # emitter-output-dir: "{project-root}/generated"