-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
Please provide us with the following information:
- [ ] bug report -> please search issues before submitting
- [x] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Expected/desired behavior
Your example shows that the APIM endpoint replaces the default openAI endpoint and a response is called with the openai completions client:
import openai
openai.api_base = "https://xxxxxxxxx.azure-api.net/" # APIM Endpoint
response = openai.Completion.create()
I am wondering if it is possible to do this with the azure.ai.projects package:
from azure.ai.projects import AIProjectClient
project_client = AIProjectClient.from_connection_string(
conn_str=project_connection_string,
credential=DefaultAzureCredential()
)
inference_client = project_client.inference.get_chat_completions_client()
response = inference_client.complete()
It would be great if this is possible as we could enable logging on all Azure AI Services, not just openAI.
Metadata
Metadata
Assignees
Labels
No labels