Skip to content

Commit

Permalink
updating readme and sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Hietala committed Sep 27, 2024
1 parent e8dd67d commit 0c286c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
9 changes: 1 addition & 8 deletions sdk/ai/azure-ai-inference/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,7 @@ See [Prerequisites](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/

* Clone or download this sample repository
* Open a command prompt / terminal window in this samples folder
* Install the client library for Python with pip:
```bash
pip install azure-ai-inference
```
or update an existing installation:
```bash
pip install --upgrade azure-ai-inference
```
* Install the client library for Python with pip. See [Install the package](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-inference/README.md#install-the-package)
* If you plan to run the asynchronous client samples, insall the additional package [aiohttp](https://pypi.org/project/aiohttp/):
```bash
pip install aiohttp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ def chat_completion_streaming(key, endpoint):

# The tracer.start_as_current_span decorator will trace the function call and enable adding additional attributes
# to the span in the function implementation. Note that this will trace the function parameters and their values.
@tracer.start_as_current_span("get_temperature")
# Uncomment the following line to add instrumentation for the function call.
#@tracer.start_as_current_span("get_temperature")
def get_temperature(city: str) -> str:

# Adding attributes to the current span
Expand Down

0 comments on commit 0c286c3

Please sign in to comment.