From eaacc37a31278984a4204c9f2fb32097bcfcef04 Mon Sep 17 00:00:00 2001 From: Glenn Harper <64209257+glharper@users.noreply.github.com> Date: Mon, 5 Aug 2024 10:03:23 -0700 Subject: [PATCH] [AI] [Inference] Fix #30554 (#30609) ### Packages impacted by this PR @azure-rest/ai-inference ### Issues associated with this PR #30554 ### Describe the problem that is addressed by this PR Fix constructor syntax in sample ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [ ] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary) --- .../samples/v1-beta/typescript/src/toolCall.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/ai/ai-inference-rest/samples/v1-beta/typescript/src/toolCall.ts b/sdk/ai/ai-inference-rest/samples/v1-beta/typescript/src/toolCall.ts index 5bcb68db543..4f03b6b94c3 100644 --- a/sdk/ai/ai-inference-rest/samples/v1-beta/typescript/src/toolCall.ts +++ b/sdk/ai/ai-inference-rest/samples/v1-beta/typescript/src/toolCall.ts @@ -39,7 +39,7 @@ const getCurrentWeather = { export async function main() { console.log("== Chat Completions Sample With Functions =="); - const client = ModelClient(endpoint, new DefaultAzureCredential())); + const client = ModelClient(endpoint, new DefaultAzureCredential()); const response = await client.path("/chat/completions").post({ body: { messages: [{ role: "user", content: "What's the weather like in Boston?" }],