LLM plugin to access model deployments on Azure AI Foundry
Project description
Azure AI Foundry Plugin for LLM
This is a plugin for llm that uses Azure AI Foundry Models.
Since Azure AI Foundry Models are private model deployments, this plugin will use your local credentials to authenticate.
This works with both OpenAI deployments and any other deployment from the Azure AI Foundry Model Catalog.
Installation
$ llm install llm-azure-ai-foundry
or pip install llm-azure-ai-foundry
Usage
First, you'll need your project endpoint from the Azure AI Foundry portal, this will look something like:
https://<xxx>.services.ai.azure.com/api/projects/<project-name>
Set this project endpoint as the azure.endpoint key:
$ llm keys set --value https://<xxx>.services.ai.azure.com/api/projects/<project-name> azure.endpoint
Once configured, LLM will query that endpoint for a list of model deployments using your Azure credentials.
Azure credentials will first attempt to use your Azure CLI credential (az login). If that is not set, it will open a browser with a signin request.
Once signed in, it will include your model deployments in the list under llm models:
$ llm models
llm models
OpenAI Chat: gpt-4o (aliases: 4o)
OpenAI Chat: chatgpt-4o-latest (aliases: chatgpt-4o)
...
Azure AI Foundry: azure/ant-grok-3-mini
Azure AI Foundry: azure/ants-gpt-4.1-mini
Default: gpt-4o-mini
Using any of those models, you can make requests to the Azure AI Foundry using llm.
Example
$ llm prompt 'top facts about cheese' -m azure/<model-name>
Sure! Here are some top facts about cheese:
1. **Ancient Origins**: Cheese is one of the oldest man-made foods, with evidence of cheese-making dating back over 7,000 years.
2. **Variety**: There are over 1,800 distinct types of cheese worldwide, varying by texture, flavor, milk source, and production methods.
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_ai_foundry-0.1.0.tar.gz.
File metadata
- Download URL: llm_azure_ai_foundry-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2830ff33373c0494dda52181951f08f568fc599fec007e741729fc21caea7b94
|
|
| MD5 |
1266108f079f5696be986621acd02d09
|
|
| BLAKE2b-256 |
5897364ed0f27f48b642c8a9a78013691733b93236959d8ff380e7da566cb841
|
Provenance
The following attestation bundles were made for llm_azure_ai_foundry-0.1.0.tar.gz:
Publisher:
python-publish.yml on tonybaloney/llm-azure-ai-foundry
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_azure_ai_foundry-0.1.0.tar.gz -
Subject digest:
2830ff33373c0494dda52181951f08f568fc599fec007e741729fc21caea7b94 - Sigstore transparency entry: 405628169
- Sigstore integration time:
-
Permalink:
tonybaloney/llm-azure-ai-foundry@683c8ef0479177374b86052a20f98f1bac2eb361 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/tonybaloney
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@683c8ef0479177374b86052a20f98f1bac2eb361 -
Trigger Event:
release
-
Statement type:
File details
Details for the file llm_azure_ai_foundry-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llm_azure_ai_foundry-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 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 |
600f1cfc22d8a1a3231abfc8f7a91e9cb5af1bb821e4770d8786c3eaf96410be
|
|
| MD5 |
5e89e3112d420eb957149dd26afc1c6d
|
|
| BLAKE2b-256 |
7368e534094b1bf90467b69ca9997f3429ecbb960c54760ed68df08e99c70780
|
Provenance
The following attestation bundles were made for llm_azure_ai_foundry-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on tonybaloney/llm-azure-ai-foundry
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_azure_ai_foundry-0.1.0-py3-none-any.whl -
Subject digest:
600f1cfc22d8a1a3231abfc8f7a91e9cb5af1bb821e4770d8786c3eaf96410be - Sigstore transparency entry: 405628177
- Sigstore integration time:
-
Permalink:
tonybaloney/llm-azure-ai-foundry@683c8ef0479177374b86052a20f98f1bac2eb361 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/tonybaloney
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@683c8ef0479177374b86052a20f98f1bac2eb361 -
Trigger Event:
release
-
Statement type: