Skip to content

llmhelper

1.0.0Package record

Unified Interface for Large Language Model Interactions

0packages depend
1.8Kdownloads / year
0.9%test coverage
13/13flavors OK

Overview

About

Provides a unified interface for interacting with Large Language Models (LLMs) through various providers including OpenAI https://platform.openai.com/docs/api-reference, Ollama https://ollama.com/, and other OpenAI-compatible APIs. Features include automatic connection testing, max_tokens limit auto-adjustment, structured JSON responses with schema validation, interactive JSON schema generation, prompt templating, and comprehensive diagnostics.

Changes in 1.0.0

Initial CRAN Release

New Features

  • llm_provider(): Create OpenAI-compatible LLM providers with automatic connection testing and max_tokens auto-adjustment
  • llm_ollama(): Create Ollama LLM providers with auto-download capability for missing models
  • get_llm_response(): Unified interface for getting text or JSON responses from LLMs
  • build_prompt(): Template-based prompt construction using glue syntax
  • set_prompt(): Create structured prompts with system and user messages
  • generate_json_schema(): Interactive JSON schema generation through LLM conversation
  • extract_schema_only(): Extract schema portion from generated results
  • diagnose_llm_connection(): Comprehensive diagnostics for LLM connection issues
  • ollama_list_models(): List available Ollama models
  • ollama_download_model(): Download models from Ollama registry
Show all changes in 1.0.0Hide the rest of the changes in 1.0.0
  • ollama_delete_model(): Remove models from Ollama

Provider Support

  • OpenAI API
  • Ollama (local LLM server)
  • DeepSeek API
  • Any OpenAI-compatible API endpoints

Key Capabilities

  • Automatic max_tokens limit detection and adjustment
  • Structured JSON response with schema validation
  • Multiple test modes: full, http_only, skip
  • Retry mechanism with configurable attempts
  • Clean chat history management
  • Verbose logging and debugging options

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.3 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.0.0
READMEYes · 303 wordsVignettesNoNEWSYes · 67% structured · mentions 1.0.0Citation fileYes · software entry onlyWebsitenot declared in DESCRIPTION
Help pages
19 (6 internal)includes a package overview page
Examples that run
33%1 run in a plain check · 2 never run
Exported functions with examples
23%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

1.8K
CRAN downloads in the past year
Rank #23,761 · ~5/day · ~152/mo
Daily download trend is not available in this view yet.
19830 days
53790 days
1.8K1 year
Compare downloads with other packages →
Also on51 r2u3 autocran

Repository

0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2026-01-27
Responsiveness
not measured
PracticesBeta

5 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/zaoqu-liu/llmhelper on 2026-10-22.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux

CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)

Installing llmhelper adds 28 packages (18 with compiled code, 20 MB of source tarballs). Heaviest: stringi 11 MB, openssl 1.1 MB, jsonlite 1.0 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 1.0.0 (2026)
Releases (1)
  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.0Latest
    2026-01-31 · current release
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2026-01-31
Total releases
1 / 1 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 4.1.0
Download size
24 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("llmhelper")

The package provides a citation file, so citation() returns the authors' own entry.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for llmhelper version 1.0.0 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy