Skip to content

[DOCS] Add llama.cpp provider documentation #416

Closed

Description

Summary

The gateway now supports llama.cpp as a first-class provider (PR #448). We need documentation for this new provider.

Affected Pages

  • New provider page: docs/providers/llamacpp.md (or similar)
  • Update the providers list in the README or index page
  • Add a llamacpp/ usage example showing how to reach models via the gateway

Details

  • Provider prefix: llamacpp (e.g. llamacpp/llama-3.2-3b-instruct)
  • Default URL: http://llamacpp:8000/v1
  • Auth: bearer (optional, --api-key can be enabled)
  • Supports vision (via --mmproj)
  • OpenAI-compatible API (chat completions, models list, SSE streaming, embeddings)
  • A single llama-server instance typically serves one loaded model; /v1/models lists just that model
  • Tool/function calling works with recent llama.cpp when started with --jinja, but quality varies by model and template

Related

Activity

  1. added
    documentation
    on Jul 18, 2026
  2. edenreich commented on Jul 18, 2026

    @edenreich
    Contributor

    @infer Can you work on this?

  3. moved this to Todo in 2026on Jul 18, 2026
  4. added theissue type on Jul 18, 2026
  5. inference-gateway-maintainer commented on Jul 18, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Model: ollama_cloud/deepseek-v4-flash · View Job

    Todos

    • Add issue to project board and set Status to In progress
    • Create branch fix/issue-416
    • Create docs/providers/llamacpp.md
    • Update supported-providers.md with llama.cpp example
    • Update index.md to mention llama.cpp
    • Add llama.cpp usage example to examples.md
    • Run checks and commit
    • Create draft PR
    • Set project board status to QA

    Pull Request

    #417

    ✅ Infer Result: Success

    Created a new llamacpp.md provider documentation page covering configuration, chat completions, streaming, vision, embeddings, and tool calling, updated the nav and sidebar in .vitepress/config.ts, and added llama.cpp references to index.md, README.md, supported-providers.md, and examples.md - all committed and pushed as draft PR #417.

    Model: ollama_cloud/deepseek-v4-flash · Exit Code: 0 · Duration: 4m 5s

    Tokens: 2,439,444 in · 10,675 out · 2,450,119 total (41 requests)

    Tool calls: 49 total · 98% success rate

    Traces
    Session: 1784363740-334e8a9d
    
    session (standard, success)                 4m4s
    ├── chat ollama_cloud/deepseek-v4-flash     3.6s
    ├── execute_tool TodoWrite                 339µs
    ├── chat ollama_cloud/deepseek-v4-flash     2.7s
    ├── execute_tool Tree                        2ms
    ├── execute_tool Read                      220µs
    ├── execute_tool Read                      393µs
    ├── chat ollama_cloud/deepseek-v4-flash     2.0s
    ├── execute_tool Read                      837µs
    ├── execute_tool Read                        1ms
    ├── execute_tool Read                        1ms
    ├── chat ollama_cloud/deepseek-v4-flash     3.4s
    ├── execute_tool Read                      172µs
    ├── execute_tool Bash                      483ms
    ├── chat ollama_cloud/deepseek-v4-flash     2.7s
    ├── execute_tool Grep                      984µs
    ├── chat ollama_cloud/deepseek-v4-flash     2.7s
    ├── execute_tool Bash                      414ms
    ├── chat ollama_cloud/deepseek-v4-flash     3.3s
    ├── execute_tool Bash                      717ms
    ├── chat ollama_cloud/deepseek-v4-flash     8.0s
    ├── execute_tool TodoWrite                  61µs
    ├── chat ollama_cloud/deepseek-v4-flash     3.3s
    ├── execute_tool Bash                      326ms
    ├── chat ollama_cloud/deepseek-v4-flash     2.5s
    ├── execute_tool Bash                       1.6s
    ├── chat ollama_cloud/deepseek-v4-flash     2.8s
    ├── execute_tool Bash                      21.9s
    ├── chat ollama_cloud/deepseek-v4-flash     5.5s
    ├── execute_tool Bash                      704ms
    ├── chat ollama_cloud/deepseek-v4-flash     3.1s
    ├── execute_tool TodoWrite                  79µs
    ├── chat ollama_cloud/deepseek-v4-flash     2.3s
    ├── execute_tool Bash                       56ms
    ├── chat ollama_cloud/deepseek-v4-flash     2.3s
    ├── execute_tool Bash                       1.2s
    ├── chat ollama_cloud/deepseek-v4-flash     2.9s
    ├── execute_tool TodoWrite                 116µs
    ├── chat ollama_cloud/deepseek-v4-flash    13.5s
    ├── execute_tool Write                     826µs
    ├── chat ollama_cloud/deepseek-v4-flash     4.7s
    ├── execute_tool Read                      238µs
    ├── chat ollama_cloud/deepseek-v4-flash     3.4s
    ├── chat ollama_cloud/deepseek-v4-flash    16.3s
    ├── execute_tool Edit                      530µs
    ├── chat ollama_cloud/deepseek-v4-flash     3.9s
    ├── execute_tool Edit                      504µs
    ├── chat ollama_cloud/deepseek-v4-flash     3.7s
    ├── execute_tool Edit                      345µs
    ├── chat ollama_cloud/deepseek-v4-flash     3.9s
    ├── execute_tool Edit                      333µs
    ├── chat ollama_cloud/deepseek-v4-flash     4.4s
    ├── execute_tool Edit                      344µs
    ├── chat ollama_cloud/deepseek-v4-flash     4.7s
    ├── execute_tool Edit                      395µs
    ├── chat ollama_cloud/deepseek-v4-flash     3.8s
    ├── execute_tool Edit                      272µs
    ├── chat ollama_cloud/deepseek-v4-flash     4.1s
    ├── execute_tool TodoWrite                  80µs
    ├── chat ollama_cloud/deepseek-v4-flash     3.6s
    ├── execute_tool Bash                       2.0s
    ├── execute_tool Bash                       4.1s [error: tool_error]
    ├── chat ollama_cloud/deepseek-v4-flash     3.2s
    ├── execute_tool Bash                       3.5s
    ├── chat ollama_cloud/deepseek-v4-flash     3.5s
    ├── execute_tool Bash                       3.6s
    ├── chat ollama_cloud/deepseek-v4-flash     3.6s
    ├── execute_tool Bash                      21.2s
    ├── chat ollama_cloud/deepseek-v4-flash     3.4s
    ├── execute_tool Bash                        7ms
    ├── chat ollama_cloud/deepseek-v4-flash     4.0s
    ├── execute_tool Bash                        9ms
    ├── chat ollama_cloud/deepseek-v4-flash     3.6s
    ├── execute_tool Bash                       1.2s
    ├── chat ollama_cloud/deepseek-v4-flash     4.3s
    ├── execute_tool TodoWrite                  92µs
    ├── chat ollama_cloud/deepseek-v4-flash     5.3s
    ├── execute_tool Write                     717µs
    ├── chat ollama_cloud/deepseek-v4-flash     3.6s
    ├── execute_tool Bash                       1.9s
    ├── chat ollama_cloud/deepseek-v4-flash     4.4s
    ├── execute_tool Bash                      612ms
    ├── chat ollama_cloud/deepseek-v4-flash     3.6s
    ├── execute_tool Bash                      360ms
    ├── execute_tool Bash                        6ms
    ├── execute_tool Bash                        6ms
    ├── chat ollama_cloud/deepseek-v4-flash     4.9s
    ├── execute_tool TodoWrite                  67µs
    ├── chat ollama_cloud/deepseek-v4-flash     3.9s
    ╰── chat ollama_cloud/deepseek-v4-flash     4.2s
    
    Stats
    Tool Calls
    
    ╭───────────┬───────┬───────┬────────╮
    │ Tool      │ Calls │ Fail% │ Avg    │
    ├───────────┼───────┼───────┼────────┤
    │ Bash      │ 22    │ 5%    │ 2995ms │
    │ TodoWrite │ 7     │ 0%    │ 0ms    │
    │ Read      │ 7     │ 0%    │ 0ms    │
    │ Edit      │ 7     │ 0%    │ 0ms    │
    │ Write     │ 2     │ 0%    │ 0ms    │
    │ Tree      │ 1     │ 0%    │ 2ms    │
    │ Grep      │ 1     │ 0%    │ 0ms    │
    ╰───────────┴───────┴───────┴────────╯
    
    Token Usage
    
    ╭────────────────────────────────┬─────────┬────────────┬─────────┬──────╮
    │ Model                          │ Prompt  │ Completion │ Total   │ Cost │
    ├────────────────────────────────┼─────────┼────────────┼─────────┼──────┤
    │ ollama_cloud/deepseek-v4-flash │ 2522273 │ 10744      │ 2533017 │ -    │
    ╰────────────────────────────────┴─────────┴────────────┴─────────┴──────╯
    
    Sessions
    
    ╭───────────┬──────────┬──────────╮
    │ Execution │ Mode     │ Sessions │
    ├───────────┼──────────┼──────────┤
    │ headless  │ standard │ 1        │
    ╰───────────┴──────────┴──────────╯
    
    ⚠️ 1 log(s)
    • Bash:
      exit status 1: $ prettier --check .
      Checking formatting...
      … (truncated)
      

    Triggered by edenreich · Infer Action

  6. moved this from Todo to In progress in 2026on Jul 18, 2026
  7. moved this from In progress to QA in 2026on Jul 18, 2026
  8. moved this from QA to Done in 2026on Jul 18, 2026
  9. inference-gateway-releaser commented on Jul 18, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.2 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions