Package: llmhelper 1.0.0
llmhelper: Unified Interface for Large Language Model Interactions
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.
Authors:
llmhelper_1.0.0.tar.gz
llmhelper_1.0.0.zip(r-4.7)llmhelper_1.0.0.zip(r-4.6)llmhelper_1.0.0.zip(r-4.5)
llmhelper_1.0.0.tgz(r-4.6-any)llmhelper_1.0.0.tgz(r-4.5-any)
llmhelper_1.0.0.tar.gz(r-4.7-any)llmhelper_1.0.0.tar.gz(r-4.6-any)
llmhelper_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
llmhelper/json (API)
NEWS
| # Install 'llmhelper' in R: |
| install.packages('llmhelper', repos = c('https://zaoqu-liu.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/zaoqu-liu/llmhelper/issues
Last updated from:c98aa9bf4e. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 127 | ||
| source / vignettes | OK | 196 | ||
| linux-release-x86_64 | OK | 121 | ||
| macos-release-arm64 | OK | 89 | ||
| macos-oldrel-arm64 | OK | 84 | ||
| windows-devel | OK | 83 | ||
| windows-release | OK | 90 | ||
| windows-oldrel | OK | 92 | ||
| wasm-release | OK | 96 |
Exports:%>%%||%build_promptdiagnose_llm_connectionextract_schema_onlygenerate_json_schemaget_llm_responsellm_ollamallm_providerollama_delete_modelollama_download_modelollama_list_modelsset_prompt
Dependencies:askpassclicurldplyrgenericsgluehttrhttr2jsonlitelifecyclemagrittrmimeopensslpillarpkgconfigpurrrR6rappdirsrlangS7stringistringrsystibbletidyprompttidyselectutf8vctrswithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Build a templated prompt for LLM interaction using glue | build_prompt |
| Comprehensive LLM connection diagnostics | diagnose_llm_connection |
| Extract only the schema part from generated result | extract_schema_only |
| Interactive JSON Schema Generator using tidyprompt | generate_json_schema |
| Get LLM Response with Text or JSON Output | get_llm_response |
| Get user feedback interactively | get_user_feedback |
| Null coalescing operator | %||% grapes-or-or-grapes |
| Create Ollama LLM provider with enhanced availability check and auto-download | llm_ollama |
| Create OpenAI-compatible LLM provider with enhanced error handling | llm_provider |
| Delete a model from Ollama API | ollama_delete_model |
| Download a model from Ollama API | ollama_download_model |
| List available models from Ollama API | ollama_list_models |
| Set system and user prompts for LLM interaction | set_prompt |
