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 model_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.2.tar.gz
.
File metadata
- Download URL: llm_azure-0.2.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12fedbbb14169c9bcd6be3dc8249b94aba7f6802ab63e5da3de1afd0950873aa |
|
MD5 | 4b6f1453275c28162332dc8c07a4e0da |
|
BLAKE2b-256 | 625b182b8833243d77c072b04847561c5452d5d1f7404411f837c47a25ad80e6 |
File details
Details for the file llm_azure-0.2-py3-none-any.whl
.
File metadata
- Download URL: llm_azure-0.2-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b90be5ea06e48b8f6f88e62d6eec57fe0ce529758cc585e15302067f9d494368 |
|
MD5 | 370c23a606b273dd11fa765aaf0db875 |
|
BLAKE2b-256 | 4525532216471e991bf9ca4d271076e7b711789177e099f1a0224c3721259aaf |