From 3ff983e16c30613196ee00da286bfb2145c4bbee Mon Sep 17 00:00:00 2001 From: Rohit Ganguly Date: Thu, 19 Dec 2024 13:31:03 -0500 Subject: [PATCH 1/2] update azure ai foundry branding --- .../azure/ai/generative/evaluate/_evaluate.py | 2 +- sdk/ai/azure-ai-inference/README.md | 9 ++++----- sdk/ai/azure-ai-inference/tests/README.md | 4 ++-- .../async_samples/sample_agents_azure_functions_async.py | 2 +- .../async_samples/sample_agents_json_schema_async.py | 2 +- .../samples/agents/sample_agents_azure_functions.py | 2 +- sdk/ai/azure-ai-resources/README.md | 2 +- .../azure/ai/resources/client/_ai_client.py | 2 +- 8 files changed, 12 insertions(+), 13 deletions(-) diff --git a/sdk/ai/azure-ai-generative/azure/ai/generative/evaluate/_evaluate.py b/sdk/ai/azure-ai-generative/azure/ai/generative/evaluate/_evaluate.py index 056020e4c5fb..a5b1af6651b3 100644 --- a/sdk/ai/azure-ai-generative/azure/ai/generative/evaluate/_evaluate.py +++ b/sdk/ai/azure-ai-generative/azure/ai/generative/evaluate/_evaluate.py @@ -168,7 +168,7 @@ def evaluate( :paramtype data_mapping: Optional[Dict[str, str]] :keyword output_path: The local folder path to save evaluation artifacts to if set :paramtype output_path: Optional[str] - :keyword tracking_uri: Tracking uri to log evaluation results to AI Studio + :keyword tracking_uri: Tracking uri to log evaluation results to AI Foundry :paramtype tracking_uri: Optional[str] :return: A EvaluationResult object. :rtype: ~azure.ai.generative.evaluate.EvaluationResult diff --git a/sdk/ai/azure-ai-inference/README.md b/sdk/ai/azure-ai-inference/README.md index 58612f72fdc2..39a3a31e84c1 100644 --- a/sdk/ai/azure-ai-inference/README.md +++ b/sdk/ai/azure-ai-inference/README.md @@ -11,8 +11,8 @@ Use the Inference client library (in preview) to: The Inference client library supports AI models deployed to the following services: * [GitHub Models](https://github.com/marketplace/models) - Free-tier endpoint for AI models from different providers -* Serverless API endpoints and Managed Compute endpoints - AI models from different providers deployed from [Azure AI Studio](https://ai.azure.com). See [Overview: Deploy models, flows, and web apps with Azure AI Studio](https://learn.microsoft.com/azure/ai-studio/concepts/deployments-overview). -* Azure OpenAI Service - OpenAI models deployed from [Azure OpenAI Studio](https://oai.azure.com/). See [What is Azure OpenAI Service?](https://learn.microsoft.com/azure/ai-services/openai/overview). Although we recommend you use the official [OpenAI client library](https://pypi.org/project/openai/) in your production code for this service, you can use the Azure AI Inference client library to easily compare the performance of OpenAI models to other models, using the same client library and Python code. +* Serverless API endpoints and Managed Compute endpoints - AI models from different providers deployed from [Azure AI Foundry](https://ai.azure.com). See [Overview: Deploy models, flows, and web apps with Azure AI Foundry](https://learn.microsoft.com/azure/ai-studio/concepts/deployments-overview). +* Azure OpenAI Service - OpenAI models deployed from [Azure AI Foundry](https://oai.azure.com/). See [What is Azure OpenAI Service?](https://learn.microsoft.com/azure/ai-services/openai/overview). Although we recommend you use the official [OpenAI client library](https://pypi.org/project/openai/) in your production code for this service, you can use the Azure AI Inference client library to easily compare the performance of OpenAI models to other models, using the same client library and Python code. The Inference client library makes services calls using REST API version `2024-05-01-preview`, as documented in [Azure AI Model Inference API](https://aka.ms/azureai/modelinference). @@ -27,18 +27,17 @@ The Inference client library makes services calls using REST API version `2024-0 ### Prerequisites * [Python 3.8](https://www.python.org/) or later installed, including [pip](https://pip.pypa.io/en/stable/). -Studio. * For GitHub models * The AI model name, such as "gpt-4o" or "mistral-large" * A GitHub personal access token. [Create one here](https://github.com/settings/tokens). You do not need to give any permissions to the token. The token is a string that starts with `github_pat_`. * For Serverless API endpoints or Managed Compute endpoints * An [Azure subscription](https://azure.microsoft.com/free). - * An [AI Model from the catalog](https://ai.azure.com/explore/models) deployed through Azure AI Studio. + * An [AI Model from the catalog](https://ai.azure.com/explore/models) deployed through Azure AI Foundry. * The endpoint URL of your model, in of the form `https://..models.ai.azure.com`, where `your-host-name` is your unique model deployment host name and `your-azure-region` is the Azure region where the model is deployed (e.g. `eastus2`). * Depending on your authentication preference, you either need an API key to authenticate against the service, or Entra ID credentials. The API key is a 32-character string. * For Azure OpenAI (AOAI) service * An [Azure subscription](https://azure.microsoft.com/free). - * An [OpenAI Model from the catalog](https://oai.azure.com/resource/models) deployed through Azure OpenAI Studio. + * An [OpenAI Model from the catalog](https://oai.azure.com/resource/models) deployed through Azure AI Foundry. * The endpoint URL of your model, in the form `https://.openai.azure.com/openai/deployments/`, where `your-resource-name` is your globally unique AOAI resource name, and `your-deployment-name` is your AI Model deployment name. * Depending on your authentication preference, you either need an API key to authenticate against the service, or Entra ID credentials. The API key is a 32-character string. * An api-version. Latest preview or GA version listed in the `Data plane - inference` row in [the API Specs table](https://aka.ms/azsdk/azure-ai-inference/azure-openai-api-versions). At the time of writing, latest GA version was "2024-06-01". diff --git a/sdk/ai/azure-ai-inference/tests/README.md b/sdk/ai/azure-ai-inference/tests/README.md index b5d2865eaff8..2026333d91c6 100644 --- a/sdk/ai/azure-ai-inference/tests/README.md +++ b/sdk/ai/azure-ai-inference/tests/README.md @@ -4,13 +4,13 @@ The instructions below are for running tests locally, on a Windows machine, agai ## Prerequisites -The live tests were written against the AI models mentioned below. You will need to deploy these two in [Azure AI Studio](https://ai.azure.com/) and have the endpoint and key for each one of them. +The live tests were written against the AI models mentioned below. You will need to deploy these two in [Azure AI Foundry](https://ai.azure.com/) and have the endpoint and key for each one of them. - `Mistral-Large` for chat completion tests, including tool tests - `Cohere-embed-v3-english` for embedding tests -In addition, you will need to deploy a gpt-4o model in the Azure OpenAI Studio, and have the endpoint and key for it: +In addition, you will need to deploy a gpt-4o model in the Azure AI Foundry, and have the endpoint and key for it: - `gpt-4o` on Azure OpenAI (AOAI), for chat completions tests with image input diff --git a/sdk/ai/azure-ai-projects/samples/agents/async_samples/sample_agents_azure_functions_async.py b/sdk/ai/azure-ai-projects/samples/agents/async_samples/sample_agents_azure_functions_async.py index 4de680633749..9bfc372447b1 100644 --- a/sdk/ai/azure-ai-projects/samples/agents/async_samples/sample_agents_azure_functions_async.py +++ b/sdk/ai/azure-ai-projects/samples/agents/async_samples/sample_agents_azure_functions_async.py @@ -17,7 +17,7 @@ pip install azure-ai-projects azure-identity Set this environment variables with your own values: - PROJECT_CONNECTION_STRING - the Azure AI Project connection string, as found in your AI Studio Project. + PROJECT_CONNECTION_STRING - the Azure AI Project connection string, as found in your AI Foundry Project. STORAGE_SERVICE_ENDPONT - the storage service queue endpoint, triggering Azure function. Please see Getting Started with Azure Functions page for more information on Azure Functions: https://learn.microsoft.com/azure/azure-functions/functions-get-started diff --git a/sdk/ai/azure-ai-projects/samples/agents/async_samples/sample_agents_json_schema_async.py b/sdk/ai/azure-ai-projects/samples/agents/async_samples/sample_agents_json_schema_async.py index 9b48199711ae..2340a7e7a3a1 100644 --- a/sdk/ai/azure-ai-projects/samples/agents/async_samples/sample_agents_json_schema_async.py +++ b/sdk/ai/azure-ai-projects/samples/agents/async_samples/sample_agents_json_schema_async.py @@ -15,7 +15,7 @@ pip install azure-ai-projects azure-identity pydantic Set this environment variables with your own values: - PROJECT_CONNECTION_STRING - the Azure AI Project connection string, as found in your AI Studio Project. + PROJECT_CONNECTION_STRING - the Azure AI Project connection string, as found in your AI Foundry Project. """ import asyncio diff --git a/sdk/ai/azure-ai-projects/samples/agents/sample_agents_azure_functions.py b/sdk/ai/azure-ai-projects/samples/agents/sample_agents_azure_functions.py index 5ebdaa36f1ec..daeb2d0b4884 100644 --- a/sdk/ai/azure-ai-projects/samples/agents/sample_agents_azure_functions.py +++ b/sdk/ai/azure-ai-projects/samples/agents/sample_agents_azure_functions.py @@ -16,7 +16,7 @@ pip install azure-ai-projects azure-identity Set this environment variables with your own values: - PROJECT_CONNECTION_STRING - the Azure AI Project connection string, as found in your AI Studio Project. + PROJECT_CONNECTION_STRING - the Azure AI Project connection string, as found in your AI Foundry Project. STORAGE_SERVICE_ENDPONT - the storage service queue endpoint, triggering Azure function. Please see Getting Started with Azure Functions page for more information on Azure Functions: https://learn.microsoft.com/azure/azure-functions/functions-get-started diff --git a/sdk/ai/azure-ai-resources/README.md b/sdk/ai/azure-ai-resources/README.md index 318382a897ee..5a9520eb28ee 100644 --- a/sdk/ai/azure-ai-resources/README.md +++ b/sdk/ai/azure-ai-resources/README.md @@ -20,7 +20,7 @@ For a more complete set of Azure libraries, see https://aka.ms/azsdk/python/all. - Python 3.7 or later is required to use this package. - You must have an [Azure subscription][azure_subscription]. - An [Azure Machine Learning Workspace][workspace]. -- An [Azure AI Studio project][ai_project]. +- An [Azure AI Foundry project][ai_project]. ### Install the package Install the Azure AI generative package for Python with pip: diff --git a/sdk/ai/azure-ai-resources/azure/ai/resources/client/_ai_client.py b/sdk/ai/azure-ai-resources/azure/ai/resources/client/_ai_client.py index 0fb4e708af41..aac75547028f 100644 --- a/sdk/ai/azure-ai-resources/azure/ai/resources/client/_ai_client.py +++ b/sdk/ai/azure-ai-resources/azure/ai/resources/client/_ai_client.py @@ -160,7 +160,7 @@ def from_config( ) -> "AIClient": """Returns a client from an existing Azure AI project using a file configuration. - To get the required details, you can go to the Project Overview page in the AI Studio. + To get the required details, you can go to the Project Overview page in AI Foundry. You can save a project's details in a JSON configuration file using this format: From 074ad581135672acd4f9e374959ec187242e01b4 Mon Sep 17 00:00:00 2001 From: Rohit Ganguly Date: Thu, 19 Dec 2024 14:08:52 -0500 Subject: [PATCH 2/2] restore AI projects files --- .../agents/async_samples/sample_agents_azure_functions_async.py | 2 +- .../agents/async_samples/sample_agents_json_schema_async.py | 2 +- .../samples/agents/sample_agents_azure_functions.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/ai/azure-ai-projects/samples/agents/async_samples/sample_agents_azure_functions_async.py b/sdk/ai/azure-ai-projects/samples/agents/async_samples/sample_agents_azure_functions_async.py index 9bfc372447b1..4de680633749 100644 --- a/sdk/ai/azure-ai-projects/samples/agents/async_samples/sample_agents_azure_functions_async.py +++ b/sdk/ai/azure-ai-projects/samples/agents/async_samples/sample_agents_azure_functions_async.py @@ -17,7 +17,7 @@ pip install azure-ai-projects azure-identity Set this environment variables with your own values: - PROJECT_CONNECTION_STRING - the Azure AI Project connection string, as found in your AI Foundry Project. + PROJECT_CONNECTION_STRING - the Azure AI Project connection string, as found in your AI Studio Project. STORAGE_SERVICE_ENDPONT - the storage service queue endpoint, triggering Azure function. Please see Getting Started with Azure Functions page for more information on Azure Functions: https://learn.microsoft.com/azure/azure-functions/functions-get-started diff --git a/sdk/ai/azure-ai-projects/samples/agents/async_samples/sample_agents_json_schema_async.py b/sdk/ai/azure-ai-projects/samples/agents/async_samples/sample_agents_json_schema_async.py index 2340a7e7a3a1..9b48199711ae 100644 --- a/sdk/ai/azure-ai-projects/samples/agents/async_samples/sample_agents_json_schema_async.py +++ b/sdk/ai/azure-ai-projects/samples/agents/async_samples/sample_agents_json_schema_async.py @@ -15,7 +15,7 @@ pip install azure-ai-projects azure-identity pydantic Set this environment variables with your own values: - PROJECT_CONNECTION_STRING - the Azure AI Project connection string, as found in your AI Foundry Project. + PROJECT_CONNECTION_STRING - the Azure AI Project connection string, as found in your AI Studio Project. """ import asyncio diff --git a/sdk/ai/azure-ai-projects/samples/agents/sample_agents_azure_functions.py b/sdk/ai/azure-ai-projects/samples/agents/sample_agents_azure_functions.py index daeb2d0b4884..5ebdaa36f1ec 100644 --- a/sdk/ai/azure-ai-projects/samples/agents/sample_agents_azure_functions.py +++ b/sdk/ai/azure-ai-projects/samples/agents/sample_agents_azure_functions.py @@ -16,7 +16,7 @@ pip install azure-ai-projects azure-identity Set this environment variables with your own values: - PROJECT_CONNECTION_STRING - the Azure AI Project connection string, as found in your AI Foundry Project. + PROJECT_CONNECTION_STRING - the Azure AI Project connection string, as found in your AI Studio Project. STORAGE_SERVICE_ENDPONT - the storage service queue endpoint, triggering Azure function. Please see Getting Started with Azure Functions page for more information on Azure Functions: https://learn.microsoft.com/azure/azure-functions/functions-get-started