Skip to content

Feature Request: Integration with  #29

@O-EAI

Description

@O-EAI

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions