Skip to content

Commit 26db809

Browse files
authored
Updated readme for inference (#31597)
### Packages impacted by this PR inference. Only readme ### Issues associated with this PR ### Describe the problem that is addressed by this PR ### 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)
1 parent 1be4937 commit 26db809

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sdk/ai/ai-inference-rest/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ if (connectionString) {
477477
provider.register();
478478
```
479479
480-
In addition, you need to register to use instrumentation for Azure SDK. You must do this before you import any dependency of `@azure-core-tracing`
480+
To use instrumentation for Azure SDK, you need to register it before importing any dependencies from `@azure/core-tracing`, such as `@azure-rest/ai-inference`.
481481
482482
```js
483483
import { registerInstrumentations } from "@opentelemetry/instrumentation";
@@ -486,6 +486,8 @@ import { createAzureSdkInstrumentation } from "@azure/opentelemetry-instrumentat
486486
registerInstrumentations({
487487
instrumentations: [createAzureSdkInstrumentation()],
488488
});
489+
490+
import ModelClient from "@azure-rest/ai-inference";
489491
```
490492
491493
Finally when you are making a call for chat completion, you need to include

0 commit comments

Comments
 (0)