### 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)
This commit is contained in:
Glenn Harper 2024-08-05 10:03:23 -07:00 коммит произвёл GitHub
Родитель b0cc89016c
Коммит eaacc37a31
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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?" }],