Skip to main content

Llimona addon providing an Azure OpenAI provider integration.

Project description

llimona-azure-openai

PyPI Python Version License Quality Gate Status Coverage

llimona-azure-openai is the Azure provider addon for Llimona.

It integrates Azure OpenAI as a pluggable backend provider so Llimona can expose OpenAI-compatible interfaces while forwarding requests to Azure OpenAI endpoints.

What this addon provides

  • A provider addon discoverable through the llimona.addon entry-point group (azure_openai).
  • A provider type: azure_openai.
  • OpenAI Responses integration (create, retrieve, and cancel).
  • OpenAI Models integration (list, retrieve, and delete).
  • Streaming and non-streaming response mapping into Llimona interface models.

Provider behavior

The addon builds an AsyncAzureOpenAI client from provider configuration:

  • base_url: Azure OpenAI endpoint base URL.
  • credentials.api_key: API key used for authentication.
  • api_version: v1.

For response creation, the provider:

  1. Validates whether the target model allows the requested service.
  2. Translates Llimona request fields into Azure OpenAI Responses API parameters.
  3. Calls Azure OpenAI.
  4. Maps the returned payload (including stream events) into Llimona response/event types.

Typical use cases

  • Expose Azure OpenAI through a unified Llimona gateway.
  • Combine Azure regions/providers behind a single routing layer.
  • Reuse Llimona contexts, constraints, and sensors with Azure-backed workloads.
  • Keep provider logic modular and independent from core application code.

Minimal provider example

type: azure_openai
name: azure_example
display_name: Azure Example
base_url: https://<your-resource>.openai.azure.com/openai/v1/
credentials:
  api_key: <your-api-key>
services:
  - type: openai_responses
  - type: openai_models
models:
  - name: gpt-4o-mini
    allowed_services:
      - openai_responses

Installation

From PyPI:

pip install llimona-azure-openai
# or
uv add llimona-azure-openai

Notes

  • This addon is designed to be loaded by a Llimona app configuration via provider_addons.
  • Service-level access can be constrained per model using allowed_services.
  • Observability is inherited from Llimona contexts and sensors, so Azure-backed requests remain traceable and measurable.

License

This addon uses the same license as the llimona package: GNU AFFERO GENERAL PUBLIC LICENSE. See the repository LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llimona_azure_openai-0.2.0b0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llimona_azure_openai-0.2.0b0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file llimona_azure_openai-0.2.0b0.tar.gz.

File metadata

  • Download URL: llimona_azure_openai-0.2.0b0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for llimona_azure_openai-0.2.0b0.tar.gz
Algorithm Hash digest
SHA256 5f29cd78c73610d5c15997aa67e02f1ae591549a69f6e04070704e42cd19e6a3
MD5 1c01a6efab2bd01cb7dd60d7fc89b766
BLAKE2b-256 0e3ef1207f9fd4fa361e351e62a8ba3c73132cc85c7c6cc9e7e72b465deecae9

See more details on using hashes here.

Provenance

The following attestation bundles were made for llimona_azure_openai-0.2.0b0.tar.gz:

Publisher: push_code.yaml on llimona-org/llimona-azure-openai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llimona_azure_openai-0.2.0b0-py3-none-any.whl.

File metadata

File hashes

Hashes for llimona_azure_openai-0.2.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 14866472c2794c612b72571b5a3b9d8f81d5f7c8b4b810bdcabe7b3664fd5568
MD5 7eb6d6667b7d2eaf03ddad4b77383a52
BLAKE2b-256 53e6fabf1b07645d088473797490bf1b17f681b21e05c36fca9472b7454d989e

See more details on using hashes here.

Provenance

The following attestation bundles were made for llimona_azure_openai-0.2.0b0-py3-none-any.whl:

Publisher: push_code.yaml on llimona-org/llimona-azure-openai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page