Azure plugin for LLM using the AzureOpenAI class
Project description
llm-azure
LLM access to the Azure OpenAI SDK
Installation
Install this plugin in the same environment as LLM.
llm install llm-azure
Usage
First, set an API key for Azure OpenAI:
llm keys set azure
# Paste key here
To add the gpt-4-32k
model, deployed in your Azure Subscription, add this to your azure/config.yaml
file:
- model_id: gpt-4-32k
deployment_name: gpt-4-32k
endpoint: https://your_deployment.openai.azure.com/
api_version: '2023-05-15'
the configuration file should be in the azure
directory in the config of your llm
installation.
Run this command to find the directory in which this file should be created:
dirname "$(llm logs path)"
The model_id
is the name LLM will use for the model. The deployment_name
is the name which needs to be passed to the API - this might differ from the model_id
, especially if the model_id
could potentially clash with other installed models.
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
File details
Details for the file llm_azure-0.4.tar.gz
.
File metadata
- Download URL: llm_azure-0.4.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73062ab65b5b8bf9132bfaf2b3a90e67b42d2c20421e687acc1a664a72116949 |
|
MD5 | 185ad8d3559ecee9e6b41ae4002d257f |
|
BLAKE2b-256 | 505c6167fbca527769bfc3c5c122b17b70a712889a6196c6fb4969030086281f |
Provenance
The following attestation bundles were made for llm_azure-0.4.tar.gz
:
Publisher:
publish.yml
on fabge/llm-azure
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
llm_azure-0.4.tar.gz
- Subject digest:
73062ab65b5b8bf9132bfaf2b3a90e67b42d2c20421e687acc1a664a72116949
- Sigstore transparency entry: 146279951
- Sigstore integration time:
- Predicate type:
File details
Details for the file llm_azure-0.4-py3-none-any.whl
.
File metadata
- Download URL: llm_azure-0.4-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48ae498f3e1fcf0b423374ddd8af8b9dfdd845d95286cbc952e7dd2136f61e40 |
|
MD5 | 919bc35fee6ea0cbb7eea829bd545cf9 |
|
BLAKE2b-256 | fd9efb579575de845e2c9fd9ffaf130d9bc10a278cdf5ec537ea239497e57d8e |
Provenance
The following attestation bundles were made for llm_azure-0.4-py3-none-any.whl
:
Publisher:
publish.yml
on fabge/llm-azure
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
llm_azure-0.4-py3-none-any.whl
- Subject digest:
48ae498f3e1fcf0b423374ddd8af8b9dfdd845d95286cbc952e7dd2136f61e40
- Sigstore transparency entry: 146279953
- Sigstore integration time:
- Predicate type: