llm-azure-openai
API access to Microsoft's Azure OpenAI models
Installation
Install this plugin in the same environment as LLM.
llm install llm-azure-openai
Usage
Export the environment variables:
export AZURE_TENANT_ID='...'
export AZURE_CLIENT_ID='...'
export AZURE_CLIENT_SECRET='...'
Configure the models you want to use from your deployments
On Mac: ~/Library/Application Support/io.datasette.llm/azure-openai-models.yaml
On Linux: ~/.config/io.datasette.llm/azure-openai-models.yaml
- model_id: o3-mini
model_name: o3-mini
azure_endpoint: https://example.openai.azure.com
api_version: '2024-12-01-preview'
aliases: ['azure-o3-mini']
use_azure_ad: true
- model_id: gpt-35-turbo-blue
model_name: gpt-35-turbo-blue
azure_endpoint: https://example.openai.azure.com
api_version: '2024-02-01'
aliases: ['azure-gpt-35']
use_azure_ad: true
Now run the model using -m your-model, for example:
llm -m azure-o3-mini "..."
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-azure-openai
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
llm install -e '.[test]'
To run the tests:
pytest
Security
This package is signed using sigstore to provide supply chain security. When you install this package from PyPI, you can verify its authenticity by checking the digital signatures.
Metadata
Release files for llm-azure-openai 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llm_azure_openai-0.1.6.tar.gz | 12.9 kB | With provenance | Details for llm_azure_openai-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llm_azure_openai-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for llm_azure_openai-0.1.6-py3-none-any.whl |
Total release size: 26.1 kB
Release files / llm_azure_openai-0.1.6.tar.gz
| Download URL | llm_azure_openai-0.1.6.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bcd941a3ecc02f3924a583c90d55a52cc6a38900f016cf90e83455a810515a86
|
|
BLAKE2b-256 checksum How to use checksums |
1a281e58cbd679be81f930863a6075d04d0cfb10466543d16534dd9558782d67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 1, 2025.
Transparency logRelease files / llm_azure_openai-0.1.6-py3-none-any.whl
| Download URL | llm_azure_openai-0.1.6-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d009a31291c4c0dd74add44fb5e99a1e8e27dc7faab68e2477231b4b90d5288
|
|
BLAKE2b-256 checksum How to use checksums |
9c2331554bab0ca79788ab0173889a0985bca52abe2fdeeb027b0c9b06e81970
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 1, 2025.
Transparency logSecurity for llm-azure-openai 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for llm_azure_openai-0.1.6.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 1, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.