You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you’re already using the [Azure OpenAI SDK](../../../ai-services/openai/chatgpt-quickstart.md) directly against the Azure OpenAI Service, the project provides a convenient way to use Azure OpenAI Service capabilities alongside the rest of the AI Foundry capabilities.
152
-
153
148
::: zone-end
154
149
155
150
::: zone pivot="programming-language-csharp"
156
151
152
+
If you have existing code that uses the OpenAI SDK, you can use the project client to create an `AzureOpenAI` client that uses your project's Azure OpenAI connection:
If you’re already using the [Azure OpenAI SDK](../../../ai-services/openai/chatgpt-quickstart.md) directly against the Azure OpenAI Service, the project provides a convenient way to use Azure OpenAI Service capabilities alongside the rest of the AI Foundry capabilities.
159
+
159
160
## Azure AI model inference service
160
161
161
162
The [Azure AI model inference service](/azure/ai-studio/ai-services/model-inference) offers access to powerful models from leading providers like OpenAI, Microsoft, Meta, and more. These models support tasks such as content generation, summarization, and code generation.
@@ -170,7 +171,7 @@ Install the `azure-ai-inferencing` client library:
170
171
pip install azure-ai-inference
171
172
```
172
173
173
-
You can use the project client to get a configured and authenticated ```ChatCompletionsClient``` or ```EmbeddingsClient```:
174
+
You can use the project client to get a configured and authenticated `ChatCompletionsClient` or `EmbeddingsClient`:
174
175
175
176
```Python
176
177
# get an chat inferencing client using the project's default model inferencing endpoint
You can change the model name to any model that you deployed to the inference service or Azure OpenAI service.
@@ -275,10 +283,10 @@ response = chat.complete(
275
283
276
284
If you have an Azure AI Search resource connected to your project, you can also use the project client to create an Azure AI Search client using the project connection.
0 commit comments