Use Buffaly with llama.cpp
Bind exact served model IDs to reachable llama.cpp servers, then select llamacpp / provider_native. Each Buffaly model row owns its server URL.
Provision a compatible server and module
- Install/build llama.cpp using its supported procedure for the server platform and provision a compatible model. Start its server and record the actual served model ID and host/port.
- Use a server build with
/v1/responsessupport for this completion route. A server that offers only/v1/chat/completionsis insufficient. Embeddings require/v1/embeddingsand an embedding-capable model separately. - Make the server reachable from the actual Buffaly execution host. Loopback reaches only that machine/container, not a separate worker host.
- Include
Buffaly.Provider.LlamaCppwith matching shared contracts through the target release's package/provisioning workflow. The enabled manifest entry must loadLlamaCppProviderCatalogSourceandLlamaCppCompletionExecutor. Follow the common installation and activation procedure.
The current model settings have no API-key or OAuth member, and this module has no provider-auth handler. Configure a reachable endpoint compatible with that client; an authenticated proxy needing an extra bearer key is not configured by adding an invented ApiKey field.
Configure the complete LlamaCpp Feature
Open provider administration and load the complete database-backed LlamaCpp Feature. Set IsEnabled=true, a positive RequestTimeoutSeconds and a nonempty Models array. Preserve unrelated settings when saving. Each row needs a unique nonempty ModelName, absolute HTTP(S) BaseUrl and positive MaxOutputTokens.
This example assumes the served model already exists. Replace the ID and root URL with your server's values. The root excludes /v1: Buffaly appends /v1/responses.
{
"IsEnabled": true,
"RequestTimeoutSeconds": 180,
"Models": [
{
"ModelName": "<exact-served-model-id>",
"DisplayName": "Local model",
"BaseUrl": "http://127.0.0.1:8080",
"IsDefault": true,
"MaxOutputTokens": 4096,
"Temperature": 0
}
]
}Add another model row for another server/model binding. There is no Ollama-style Endpoints array or EndpointName reference. Mark the intended single default with IsDefault; the current default resolver otherwise uses the first model. A settings row records the model binding; it does not install or load the server's model.
Select the model with empty reasoning
Save/reload through provider administration, read the full provider catalog and inspect Providers and Error. Select llamacpp / provider_native and the exact configured ModelName. The current catalog advertises no reasoning controls, so ReasoningLevel is empty. Adding a reasoning property to a model row does not create support. Use selection readback to confirm the tuple.
Configure embeddings as a separate capability
The module also declares LlamaCppEmbeddingCatalogSource and LlamaCppEmbeddingExecutor. Verify both components load. The embedding client calls the selected model's root plus /v1/embeddings.
For embedding configuration, every model row in this feature must satisfy the current embedding validation: positive EmbeddingLogicalDimensions and EmbeddingStoredDimensions, nonempty EmbeddingDistanceMetric and EmbeddingPaddingStrategy. Set them to the actual model/storage contract, not invented dimensions to make validation pass. The all-row validation means a mixed chat/embedding array with incomplete vector metadata is not embedding-ready.
Select and verify the embedding row through the separate embedding workflow, preserving the full vector identity. Chat success does not validate embeddings. This manifest declares no speech component.
Check readiness without inference
- Inspect module-load diagnostics and saved non-secret feature settings. Confirm the intended host root, unique model ID, enabled state and empty reasoning catalog.
- Read server status or its model inventory from the Buffaly execution host using that server's supported non-inference endpoint. A reachable port alone does not establish Responses compatibility.
- Read the current Buffaly selection without changing it. Configured status validates settings, not network reachability or the response contract.
- For an intended execution test, choose the model in a test session and send
Reply exactly: LLAMACPP_PROVIDER_OK. Confirm normal assistant text and the intended server's/v1/responsespath in non-secret diagnostics. Run a separate embedding test only if that capability is configured and intended.
Common failures
- Catalog error: check the required feature row, nonempty model array, unique IDs and positive timeout/output budget.
- Connection refused: check the actual execution machine, server binding and host/port. A local browser reaching the server is not a worker reachability check.
- Responses endpoint missing: use a compatible server; do not relabel chat-completions support as Responses support. A doubled
/v1/v1means the configured root includes the API suffix. - Unauthorized proxy: this settings contract does not supply a custom bearer key.
- Embedding catalog unavailable: inspect embedding components and every model row's vector metadata; chat configuration alone is insufficient.