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.

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.2.tar.gz (3.4 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.2-py2.py3-none-any.whl (3.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: llm_github_models-0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.2

File hashes

Hashes for llm_github_models-0.2.tar.gz
Algorithm Hash digest
SHA256 707bae518ad17366a538d66ab36066f64a24fc37ab0584d5f165462a5a241083
MD5 e82b9df3375760cf2df9e41ce983ec64
BLAKE2b-256 20b61e3a7e80e7bd5e1781ab26c7131ed8ba843807c9868506bb026a895ac62c

See more details on using hashes here.

File details

Details for the file llm_github_models-0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for llm_github_models-0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9e3c9ffb94ef2a70bed2fd9f286a5c360658d5255246c9f6b657393dc75c33ef
MD5 bf2885c9451e94236c4a8e3eed5335d4
BLAKE2b-256 2f9adfd8ef368d2b0e6b4cc239ade3b6c30921d713ffd30e6bed43bcc273aa53

See more details on using hashes here.

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