LLM plugin to access Azure OpenAI models
Project description
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_azure_openai-0.1.6.tar.gz.
File metadata
- Download URL: llm_azure_openai-0.1.6.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcd941a3ecc02f3924a583c90d55a52cc6a38900f016cf90e83455a810515a86
|
|
| MD5 |
4227b1b6264c2b7fa0b17a5809cb1afb
|
|
| BLAKE2b-256 |
1a281e58cbd679be81f930863a6075d04d0cfb10466543d16534dd9558782d67
|
Provenance
The following attestation bundles were made for llm_azure_openai-0.1.6.tar.gz:
Publisher:
publish.yml on wbierbower/llm-azure-openai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_azure_openai-0.1.6.tar.gz -
Subject digest:
bcd941a3ecc02f3924a583c90d55a52cc6a38900f016cf90e83455a810515a86 - Sigstore transparency entry: 205394642
- Sigstore integration time:
-
Permalink:
wbierbower/llm-azure-openai@353f4d94425a8eb8f0b9acb151c460ee2a77d4dc -
Branch / Tag:
refs/tags/0.1.6 - Owner: https://github.com/wbierbower
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@353f4d94425a8eb8f0b9acb151c460ee2a77d4dc -
Trigger Event:
release
-
Statement type:
File details
Details for the file llm_azure_openai-0.1.6-py3-none-any.whl.
File metadata
- Download URL: llm_azure_openai-0.1.6-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d009a31291c4c0dd74add44fb5e99a1e8e27dc7faab68e2477231b4b90d5288
|
|
| MD5 |
cfd937c10bc4b74a93c21b957b957419
|
|
| BLAKE2b-256 |
9c2331554bab0ca79788ab0173889a0985bca52abe2fdeeb027b0c9b06e81970
|
Provenance
The following attestation bundles were made for llm_azure_openai-0.1.6-py3-none-any.whl:
Publisher:
publish.yml on wbierbower/llm-azure-openai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_azure_openai-0.1.6-py3-none-any.whl -
Subject digest:
8d009a31291c4c0dd74add44fb5e99a1e8e27dc7faab68e2477231b4b90d5288 - Sigstore transparency entry: 205394644
- Sigstore integration time:
-
Permalink:
wbierbower/llm-azure-openai@353f4d94425a8eb8f0b9acb151c460ee2a77d4dc -
Branch / Tag:
refs/tags/0.1.6 - Owner: https://github.com/wbierbower
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@353f4d94425a8eb8f0b9acb151c460ee2a77d4dc -
Trigger Event:
release
-
Statement type: