Azure compatibility

Is there compatibility for Azure clients such as:

  • openai.lib.azure.AzureOpenAI
  • openai.lib.azure.AsyncAzureOpenAI
  • agent_framework.azure._chat_client.AzureOpenAIChatClient
    ?

In general, are there any samples or usage examples of Lens Loop with Azure services such as Azure AI Foundry, Azure Open AI service, etc.?

Loop currently supports Azure OpenAI as a backend, but we don’t currently guarantee “drop-in” compatibility with Azure-specific helper clients. The supported path is to use the standard OpenAI client pointed at Loop.

Example:

from openai import OpenAI

client = OpenAI(
    base_url="http://localhost:31300/azure/<your-resource>",
    api_key="AZURE_OPENAI_KEY",
)

resp = client.chat.completions.create(
    model="my-deployment-name",
    messages=[{"role": "user", "content": "Hello"}],
)

That said, we’d love to hear which SDKs or libraries you’re planning to use.
Knowing this helps us decide whether it makes sense to add explicit compatibility or aliases for specific Azure SDKs.

If you can share the SDK/library (and language) you have in mind, we’re happy to take a closer look.

2 Likes