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.3.tar.gz (3.8 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.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llm_github_models-0.3.tar.gz
  • Upload date:
  • Size: 3.8 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.3.tar.gz
Algorithm Hash digest
SHA256 a988ac79f0d78277a1e110e72fedd738be9c66c245cfcf0c75cfeedd5a843292
MD5 0d59aaf3971aac638b807deaf6a2cb70
BLAKE2b-256 86fbf274cd12368739dd0586d2d1ff6152ecbb972603ac558a186279d147dae4

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_github_models-0.3.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.3-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_github_models-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f3c86f6d2acb7303c19a639d1a9373003193835c296438e8b3c1192fd31c22f4
MD5 4e7e1d237f80a176ba22b98c184bd4f7
BLAKE2b-256 024503277268af7da5f52e4dd782c02abf1d995cbb4237bad7e705d2a2196ee1

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_github_models-0.3-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