Skip to main content

Azure plugin for LLM using the AzureOpenAI class

Project description

llm-azure

PyPI Changelog License

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

llm_azure-0.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

llm_azure-0.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file llm_azure-0.1.tar.gz.

File metadata

  • Download URL: llm_azure-0.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for llm_azure-0.1.tar.gz
Algorithm Hash digest
SHA256 9a77918e75c3d1583d115bcacaadf3bf1205db59e04531a7d2c277948d2c1a38
MD5 b52b5f496233a947b8104477869ac2ab
BLAKE2b-256 55b84a3256f199d26abf2911440c10b8ee767296686d123748c016f5396a12f5

See more details on using hashes here.

File details

Details for the file llm_azure-0.1-py3-none-any.whl.

File metadata

  • Download URL: llm_azure-0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for llm_azure-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85f05ff82ffe897e6845f7fa797943c6eb13ad587a0de1520360e91a432cc6b1
MD5 e1d34ee6f5b672804df7b2de51eb9de1
BLAKE2b-256 b2755a1c1e40b0d4be6411211a73378e96b1ae697c53a1c36059a5c16bc9ea3a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page