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.

Installation

$ llm install llm-github-models

Usage

To set the API key, use the llm keys set github 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.5.tar.gz (4.0 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.5-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llm_github_models-0.5.tar.gz
  • Upload date:
  • Size: 4.0 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.5.tar.gz
Algorithm Hash digest
SHA256 310fe1fae4d59dd71bd3f06bae130ef683ca6b415fe19aef670cdfaef6ade257
MD5 4697469c8c34702f976a015b4f592338
BLAKE2b-256 bb6dbf1d8345c94292f9c7390c379c1895735c995970480d091c88af3525f4e5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for llm_github_models-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b15028ae57749571b01bce12173db7a553c9432dc5046935c02edadfdfa35848
MD5 7d8f3825284472d7d294dd53e6d3317f
BLAKE2b-256 9a816b03f50bbe51db85371b5b79c407d450c4be9d9af2e33793df17e6191069

See more details on using hashes here.

Provenance

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