Skip to main content

LLM simplified.

Project description

LLMling

PyPI License Package status Daily downloads Weekly downloads Monthly downloads Distribution format Wheel availability Python version Implementation Releases Github Contributors Github Discussions Github Forks Github Issues Github Issues Github Watchers Github Stars Github Repository size Github last commit Github release date Github language count Github commits this week Github commits this month Github commits this year Package status Code style: black PyUp

Read the documentation!

# Root level: Config
version: "1.0"
global_settings:  # GlobalSettings
  timeout: 30
  max_retries: 3
  temperature: 0.7

context_processors:  # dict[str, ProcessorConfig]
  processor1:
    type: function
    import_path: "utils.clean_text"
  processor2:
    type: template
    template: "{{ content }}\n---"

llm_providers:  # dict[str, LLMProvider]
  gpt4:
    model: openai/gpt-4
    temperature: 0.7

provider_groups:  # dict[str, list[str]]
  fast_models:
    - gpt4
    - claude2

contexts:  # dict[str, Context(PathContext | TextContext | CLIContext)]
  guidelines:
    type: path  # PathContext
    path: "./guide.md"
    description: "Guide"
    processors:  # list[ProcessingStep]
      - name: processor1
        keyword_args: {key: "value"}

  prompt:
    type: text  # TextContext
    content: "System prompt"
    description: "Basic prompt"

  git_diff:
    type: cli  # CLIContext
    command: "git diff"
    description: "Changes"

context_groups:  # dict[str, list[str]]
  review_contexts:
    - guidelines
    - prompt

task_templates:  # dict[str, TaskTemplate]
  code_review:
    provider: gpt4  # provider or group name
    context: review_contexts  # context or group name
    settings:  # TaskSettings
      temperature: 0.5

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

llmling-0.1.0.tar.gz (62.3 kB view details)

Uploaded Source

Built Distribution

llmling-0.1.0-py3-none-any.whl (60.6 kB view details)

Uploaded Python 3

File details

Details for the file llmling-0.1.0.tar.gz.

File metadata

  • Download URL: llmling-0.1.0.tar.gz
  • Upload date:
  • Size: 62.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.2

File hashes

Hashes for llmling-0.1.0.tar.gz
Algorithm Hash digest
SHA256 320f4ee53084ad8fe7c80c55832da08919917f339235fad919780944929637c7
MD5 0bc34177d46da50eec2711918abd2824
BLAKE2b-256 b3a1bd5c314893531e3398009f1d4752aa5190284d030c1b08795b8802284efb

See more details on using hashes here.

File details

Details for the file llmling-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: llmling-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 60.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.2

File hashes

Hashes for llmling-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 502ecbca93ff15b9aec8167a221b6be1bd73a33ef03d03b70e28e1edeefc07ed
MD5 4b94a65170aac910bf7bb72b839a69a5
BLAKE2b-256 f62ad957c7b427c43e138230d012dc35c858e53da2b17c04686a16b4800746a2

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