Skip to content

Feature Request: Integration with #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
O-EAI opened this issue Jan 14, 2025 · 0 comments
Open

Feature Request: Integration with #29

O-EAI opened this issue Jan 14, 2025 · 0 comments

Comments

@O-EAI
Copy link

O-EAI commented Jan 14, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant