Skip to main content

LLM plugin to access GitHub Models API

Project description

GitHub Models Plugin for LLM

This is a plugin for llm that uses GitHub Models via the Azure AI Inference SDK.

To set the API key, use the llm keys set command or use the GITHUB_MODELS_KEY environment variable.

To get an API key, create a PAT inside GitHub.

All model names are affixed with github/ to distinguish the OpenAI ones from the builtin models.

Installation

$ llm install llm-github-models

Example

$ llm prompt 'top facts about cheese' -m github/mistral-large                                                                                                                
Sure, here are some interesting facts about cheese:

1. There are over 2000 types of cheese: The variety of cheese is vast, with different flavors, textures, and aromas. This is due to factors like the type of milk used, the aging process, and the specific bacteria and mold cultures involved.

2. Cheese is an ancient food: The earliest evidence of cheese-making dates back to around 6000 BC, found in ancient Polish sites.

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_github_models-0.4.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_github_models-0.4-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file llm_github_models-0.4.tar.gz.

File metadata

  • Download URL: llm_github_models-0.4.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for llm_github_models-0.4.tar.gz
Algorithm Hash digest
SHA256 d9ea4d858f0a028052988b0275f2f161be2e58786a77f7611ee93c56e5f51f07
MD5 22b72092bc308fb6908dd1d6ec6ed2e0
BLAKE2b-256 fb0c7133873d6fdcad1b86c7568c223d20ad8bfefc091a2759ecd81f4d8ef2f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_github_models-0.4.tar.gz:

Publisher: python-publish.yml on tonybaloney/llm-github-models

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llm_github_models-0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_github_models-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fce9f35c7f914f256447959256193ed298351cddb333d6a9df69bdcac0f0f2bf
MD5 e5af5f37a3c390f53451ecee42ec5942
BLAKE2b-256 ac24b0138cece0e55dd750e1682b067fd63cb6518a26565a685ddb37c47c7380

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_github_models-0.4-py3-none-any.whl:

Publisher: python-publish.yml on tonybaloney/llm-github-models

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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