How to have LLM see raspberry pi endpoint as a model? #1462
Replies: 1 comment
|
You don't need those plugins for a remote OpenAI-compatible server. The built-in OpenAI plugin already covers it via a config file. Find the config dir: dirname "$(llm logs path)"On Linux that's often Drop an - model_id: pi-tinyllama
model_name: tinyllama
api_base: "http://<pi-ip>:11435/v1"
supports_tools: true
can_stream: trueIf the Pi wants a key: llm keys set piThen add Sanity check: llm openai endpoint http://<pi-ip>:11435/v1 --models
llm models --options -m pi-tinyllama
llm -m pi-tinyllama 'ping'For tools, with llm -m pi-tinyllama -T some_tool 'do the background job'If that fails, hit the endpoint once without registering anything. That helps you tell "Pi doesn't do tools" apart from "YAML is wrong": llm openai endpoint http://<pi-ip>:11435/v1 -m tinyllama -T some_tool '...'Docs are here: OpenAI-compatible models and Adding more OpenAI models. |
Uh oh!
There was an error while loading. Please reload this page.
Hiya,
Working on a personal project using a small distributed setup with llm and I'm trying to register a remote TinyLlama instance running on a Raspberry pi 3b+ (yes, that little guy can work!). The pi exposes an OpenAI-compatible API at http://:11435/v1
Its job is to run background tasks and call Python tools (@llm.tool) for DB writes, vendor‑finder scans, cron‑style jobs, etc.
Since it's the tool agent, I need it to appear in llm models list and tried the following plugins: llm-ollama, llm-llama-cpp, llm-llama-server, llm-openai. None register the Pi endpoint as a model.
What’s the correct way to register a remote OpenAI‑compatible endpoint so that it shows up in llm models list and can be targeted for tool‑calling?
Thank you much.
jg
All reactions