CLIO icon indicating copy to clipboard operation
CLIO copied to clipboard

Onboarding rails: Took 5 minutes to find it's local. Then example of api use not show how to list apis.

Open clort81 opened this issue 8 months ago • 2 comments

25 minutes later still do not know how to set up llama.cpp api.

Time over.

Minimal edit to docu example suggested: How to get list of apis. How to configure local api.

Thanks. Looks nice otherwise.

clort81 avatar Mar 21 '26 19:03 clort81

Automated Triage Summary

Field Value
Classification enhancement
Priority low
Completeness 95%

Analysis: This is a documentation/UX gap rather than a runtime bug. The code already supports listing providers and configuring a local llama.cpp provider: use '/api providers' to list available providers, '/api providers llama.cpp' to show setup steps, '/api set provider llama.cpp' to switch, and '/api set base ' if your local server uses a non-default port. README and USER_GUIDE should be updated to include these explicit examples and a note that local model servers must expose a /v1/models endpoint (or that the API base can be set to the models-compatible URL) so that '/api models' can list available models. Recommend a small docs patch with concrete command examples and a short troubleshooting note about ports and the /models endpoint. Assigning to fewtarius for a docs PR.

Root Cause Analysis

Confidence: high

Relevant files:

  • lib/CLIO/Providers.pm
  • lib/CLIO/UI/Commands/API.pm
  • lib/CLIO/Core/APIManager.pm
  • README.md
  • docs/USER_GUIDE.md

Relevant functions:

  • CLIO::Providers::list_providers
  • CLIO::Providers::get_provider
  • CLIO::UI::Commands::API::_display_api_providers
  • CLIO::UI::Commands::API::_show_provider_details
  • CLIO::UI::Commands::API::_handle_api_set
  • CLIO::Core::APIManager::_detect_api_type_and_url

The reporter couldn't find documentation showing how to list available providers or configure a local llama.cpp API. The code already exposes CLI commands to do this (/api providers, /api providers , /api set provider , /api set base , /api models) and defines a default provider entry for 'llama.cpp' in lib/CLIO/Providers.pm (api_base: http://localhost:808/v1/chat/completions, requires_auth: none). However, the user-facing docs/examples (README and USER_GUIDE) do not explicitly show the exact commands/examples for: 1) listing providers (/api providers), 2) viewing provider details (/api providers llama.cpp), 3) switching to the local provider (/api set provider llama.cpp), 4) overriding API base if the local server uses a different port (/api set base http://localhost:PORT), and 5) how to list models (/api models or /api models --refresh). Also note: APIManager maps localhost:808 to type 'sam' when detecting models URL, so documentation should mention that local model endpoints must expose a /v1/models endpoint (or that the user should set API base to the models-compatible URL) to make /api models work. Confidence: high.

Affected Areas

  • CLI API commands (/api providers, /api set, /api models)
  • provider registry (lib/CLIO/Providers.pm)
  • API detection & model-listing (lib/CLIO/Core/APIManager.pm)
  • docs (README.md, docs/USER_GUIDE.md, provider quickstart sections)
  • UI help output (lib/CLIO/UI/Commands/API.pm)

This is an automated analysis. A maintainer will review shortly.

CLIO-Bot avatar Mar 21 '26 19:03 CLIO-Bot

This should be fixed, found some things that could be made more clear in the docs and the code. :)

fewtarius avatar Mar 22 '26 11:03 fewtarius