localmodels

v0.1.0
io.github.CloudCorpRecords/localmodels Checked 4 days ago Published 1 month ago

Talk to a local Ollama server: list, pull, inspect, generate, chat and embed.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_models

List the models available on the local Ollama server.

show_model

Show information about a model on the local Ollama server.

ParameterTypeDescription
model *stringThe name of the model to show information for (e.g. 'llama3.2').

pull_model

Pull a model from the registry onto the local Ollama server.

ParameterTypeDescription
model *stringThe name of the model to pull from the registry (e.g. 'llama3.2').

delete_model

Delete a model from the local Ollama server.

ParameterTypeDescription
model *stringThe name of the model to delete from the local Ollama server.

copy_model

Copy a model on the local Ollama server under a new name.

ParameterTypeDescription
destination *stringThe new model name to copy the source model to.
source *stringThe name of the existing model to copy from.

generate_completion

Generate a completion for a prompt using a local model.

ParameterTypeDescription
model *stringThe name of the local model to generate the completion with.
prompt *stringThe prompt text to generate a completion for.
systemstringOptional system prompt sent with the generation request when non-empty.

chat_completion

Generate a chat response for a list of messages using a local model.

ParameterTypeDescription
messages *arrayThe non-empty list of chat messages (each with a role and content) to send to the model.
model *stringThe name of the local model to generate the chat response with.

create_embedding

Create embeddings for input text using a local model.

ParameterTypeDescription
input *stringThe input text to create embeddings for.
model *stringThe name of the local embedding model to use.

list_running_models

List the models currently running on the local Ollama server.

get_version

Get the version of the local Ollama server.