Skip to content

Commit ec240a3

Browse files
committed
update AI inference exaples for phi articles
1 parent 9305518 commit ec240a3

File tree

3 files changed

+15
-21
lines changed

3 files changed

+15
-21
lines changed

articles/ai-studio/how-to/deploy-models-phi-3-5-vision.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ print_stream(result)
227227
Explore other parameters that you can specify in the inference client. For a full list of all the supported parameters and their corresponding documentation, see [Azure AI Model Inference API reference](https://aka.ms/azureai/modelinference).
228228

229229
```python
230-
from azure.ai.inference.models import ChatCompletionsResponseFormat
230+
from azure.ai.inference.models import ChatCompletionsResponseFormatText
231231

232232
response = client.complete(
233233
messages=[
@@ -240,7 +240,7 @@ response = client.complete(
240240
stop=["<|endoftext|>"],
241241
temperature=0,
242242
top_p=1,
243-
response_format={ "type": ChatCompletionsResponseFormat.TEXT },
243+
response_format={ "type": ChatCompletionsResponseFormatText() },
244244
)
245245
```
246246

@@ -1613,13 +1613,11 @@ For more examples of how to use Phi-3 family models, see the following examples
16131613
16141614
| Description | Language | Sample |
16151615
|-------------------------------------------|-------------------|-----------------------------------------------------------------|
1616-
| CURL request | Bash | [Link](https://aka.ms/phi-3/webrequests-sample) |
1617-
| Azure AI Inference package for JavaScript | JavaScript | [Link](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/ai/ai-inference-rest/samples) |
1616+
| Azure AI Inference package for C# | C# | [Link](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Inference/samples) |
1617+
| Azure AI Inference package for JavaScript | JavaScript | [Link](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/ai/ai-inference-rest/samples) |
16181618
| Azure AI Inference package for Python | Python | [Link](https://aka.ms/azsdk/azure-ai-inference/python/samples) |
1619-
| Python web requests | Python | [Link](https://aka.ms/phi-3/webrequests-sample) |
1620-
| OpenAI SDK (experimental) | Python | [Link](https://aka.ms/phi-3/openaisdk) |
1621-
| LangChain | Python | [Link](https://aka.ms/phi-3/langchain-sample) |
1622-
| LiteLLM | Python | [Link](https://aka.ms/phi-3/litellm-sample) |
1619+
| LangChain | Python | [Link](https://aka.ms/azureai/langchain) |
1620+
| Llama-Index | Python | [Link](https://aka.ms/azureai/llamaindex) |
16231621
16241622
16251623
## Cost and quota considerations for Phi-3 family models deployed as serverless API endpoints

articles/ai-studio/how-to/deploy-models-phi-3-vision.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,13 +1404,11 @@ For more examples of how to use Phi-3 family models, see the following examples
14041404
14051405
| Description | Language | Sample |
14061406
|-------------------------------------------|-------------------|-----------------------------------------------------------------|
1407-
| CURL request | Bash | [Link](https://aka.ms/phi-3/webrequests-sample) |
1408-
| Azure AI Inference package for JavaScript | JavaScript | [Link](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/ai/ai-inference-rest/samples) |
1407+
| Azure AI Inference package for C# | C# | [Link](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Inference/samples) |
1408+
| Azure AI Inference package for JavaScript | JavaScript | [Link](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/ai/ai-inference-rest/samples) |
14091409
| Azure AI Inference package for Python | Python | [Link](https://aka.ms/azsdk/azure-ai-inference/python/samples) |
1410-
| Python web requests | Python | [Link](https://aka.ms/phi-3/webrequests-sample) |
1411-
| OpenAI SDK (experimental) | Python | [Link](https://aka.ms/phi-3/openaisdk) |
1412-
| LangChain | Python | [Link](https://aka.ms/phi-3/langchain-sample) |
1413-
| LiteLLM | Python | [Link](https://aka.ms/phi-3/litellm-sample) |
1410+
| LangChain | Python | [Link](https://aka.ms/azureai/langchain) |
1411+
| Llama-Index | Python | [Link](https://aka.ms/azureai/llamaindex) |
14141412
14151413
14161414
## Cost and quota considerations for Phi-3 family models deployed to managed compute

articles/ai-studio/how-to/deploy-models-phi-3.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ print_stream(result)
261261
Explore other parameters that you can specify in the inference client. For a full list of all the supported parameters and their corresponding documentation, see [Azure AI Model Inference API reference](https://aka.ms/azureai/modelinference).
262262

263263
```python
264-
from azure.ai.inference.models import ChatCompletionsResponseFormat
264+
from azure.ai.inference.models import ChatCompletionsResponseFormatText
265265

266266
response = client.complete(
267267
messages=[
@@ -1457,13 +1457,11 @@ For more examples of how to use Phi-3 family models, see the following examples
14571457
14581458
| Description | Language | Sample |
14591459
|-------------------------------------------|-------------------|-----------------------------------------------------------------|
1460-
| CURL request | Bash | [Link](https://aka.ms/phi-3/webrequests-sample) |
1461-
| Azure AI Inference package for JavaScript | JavaScript | [Link](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/ai/ai-inference-rest/samples) |
1460+
| Azure AI Inference package for C# | C# | [Link](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Inference/samples) |
1461+
| Azure AI Inference package for JavaScript | JavaScript | [Link](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/ai/ai-inference-rest/samples) |
14621462
| Azure AI Inference package for Python | Python | [Link](https://aka.ms/azsdk/azure-ai-inference/python/samples) |
1463-
| Python web requests | Python | [Link](https://aka.ms/phi-3/webrequests-sample) |
1464-
| OpenAI SDK (experimental) | Python | [Link](https://aka.ms/phi-3/openaisdk) |
1465-
| LangChain | Python | [Link](https://aka.ms/phi-3/langchain-sample) |
1466-
| LiteLLM | Python | [Link](https://aka.ms/phi-3/litellm-sample) |
1463+
| LangChain | Python | [Link](https://aka.ms/azureai/langchain) |
1464+
| Llama-Index | Python | [Link](https://aka.ms/azureai/llamaindex) |
14671465
14681466
14691467
## Cost and quota considerations for Phi-3 family models deployed as serverless API endpoints

0 commit comments

Comments
 (0)