Skip to content

[DOCS] README drift: MCP_ENABLED env var, supported providers, examples references #135

Closed

Description

Summary

Several statements in README.md no longer match the code or the repository. They cover the MCP env var name, the supported provider list, and two references to the examples directory.

Acceptance Criteria

  • README.md "Listing MCP Tools" (line 100) says MCP requires MCP_ENABLE and MCP_EXPOSE. The gateway setting is MCP_ENABLED: the openapi.yaml config has env: 'MCP_ENABLED', the mcp_jsonrpc() docstring in inference_gateway/client.py says MCP_ENABLED=true, and the same README says MCP_ENABLED on line 140. The same MCP_ENABLE typo appears in examples/mcp/README.md, examples/mcp/main.py and examples/.env.example.
  • README.md "Supported Providers" lists 13 providers. The Provider type in inference_gateway/models.py accepts 16, so llamacpp, elevenlabs and zai are missing from the list.
  • README.md "Vision Support" ends with "For a complete example, see the chat example", but examples/chat/main.py only sends plain-text messages and never uses ImageContentPart or ImageURL. Point to an actual vision example or remove the sentence.
  • README.md "Examples" lists five examples and says "Each example includes its own README". examples/images/ (a create_image / create_image_edit demo) is not listed and has no README.md. Add it to the list and give it a README, or reword the sentence.

Activity

  1. added
    documentation
    on Sep 25, 2026
  2. edenreich commented on Sep 25, 2026

    @edenreich
    Contributor

    @infer Can you fix this?

  3. inference-gateway-maintainer commented on Sep 25, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Model: ollama_cloud/glm-5.3-flash · View Job

    Todos

    Pull Request

    #137

    ✅ Infer Result: Success

    All four README drift items from issue #135 are fixed and delivered in PR #137 (ready for review).

    What changed

    1. MCP env var typo - MCP_ENABLE -> MCP_ENABLED everywhere: README.md "Listing MCP Tools" (now consistent with line 140, the openapi.yaml env: 'MCP_ENABLED' config, and the mcp_jsonrpc docstring), plus examples/mcp/README.md, examples/mcp/main.py, and examples/.env.example. Verified no stray MCP_ENABLE remains (the legit MCP_ENABLE_RECONNECT was left untouched).

    2. Supported Providers - added the three missing providers to README.md: LlamaCPP ("llamacpp"), ElevenLabs ("elevenlabs"), Z.AI ("zai"). The list now covers all 16 values of the Provider Literal in inference_gateway/models.py.

    3. Vision Support - removed the stale "For a complete example, see the chat example" sentence. examples/chat/main.py sends plain-text messages only, and the repo has no dedicated vision example to point to instead (the images example covers image generation, not multimodal input).

    4. Images example - added an Images Example entry to the Examples list in both README.md and examples/README.md, and created examples/images/README.md (prerequisites, run instructions, create_image/create_image_edit snippets, env vars) so "Each example includes its own README" now holds for every example.

    Validation

    • task lint (black --check, isort --check-only, mypy): passed
    • task test: 41 passed, 1 xfailed
    • Docs-only change, no code behavior changes, so no [DOCS] ticket or downstream follow-ups were needed

    The issue is tracked on the org Roadmap board (status: QA). Merging the PR will close it.

    Model: ollama_cloud/glm-5.3-flash · Exit Code: 0 · Duration: 3m 24s

    Tokens: 1,246,053 in · 14,297 out · 1,260,350 total (28 requests)

    Tool calls: 48 total · 100% success rate

    Traces
    Session: 1790376594-f87c0e28
    
    session (headless, success)                                                                        3m17s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.2s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.2s
    ├── execute_tool TodoWrite call_piey72kq                                                            81µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.4s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.4s
    ├── execute_tool Bash call_2egm2z7n                                                                322ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                967ms
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      958ms
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    954ms
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            954ms
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                954ms
    ├── execute_tool Bash call_wmkg92hr                                                                 1.1s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.3s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.3s
    ├── execute_tool Bash call_jlt7lwsy                                                                640ms
    ├── execute_tool Bash call_wh77i7t0                                                                  8ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.0s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.0s
    ├── execute_tool Bash call_yd97mtnv                                                                 1.2s
    ├── execute_tool Read call_cu9hp68k                                                                343µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.7s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.7s
    ├── execute_tool Grep call_e1o1fz1s                                                                 12ms
    ├── execute_tool Read call_9yg9fy9g                                                                160µs
    ├── execute_tool Read call_zv7vxlmo                                                                122µs
    ├── execute_tool Grep call_kpx5ncxu                                                                  5ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 5.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.7s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.7s
    ├── execute_tool Bash call_rs7f09x0                                                                  3ms
    ├── execute_tool Read call_5lszp4ne                                                                175µs
    ├── execute_tool Read call_5z5t3nlw                                                                174µs
    ├── execute_tool Read call_r1kkgyei                                                                177µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.3s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.3s
    ├── execute_tool Read call_tu6d7io2                                                                161µs [error: tool_error]
    ├── execute_tool Read call_okbbuc6i                                                                157µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 9.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       9.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     9.1s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             9.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 9.1s
    ├── execute_tool Read call_18xxj6os                                                                150µs
    ├── execute_tool Read call_45f1my7l                                                                169µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                13.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      13.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    13.7s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            13.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                13.7s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.7s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.7s
    ├── execute_tool TodoWrite call_8extvmce                                                            66µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.1s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.1s
    ├── execute_tool MultiEdit call_xeoedu4n                                                           527µs [error: tool_error]
    ├── chat ollama_cloud/glm-5.3-flash                                                                 7.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.5s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.5s
    ├── execute_tool MultiEdit call_qn1ymw7y                                                           475µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.4s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.4s
    ├── execute_tool Edit call_lqlmxg8w                                                                396µs
    ├── execute_tool Edit call_yeqpvqw8                                                                364µs
    ├── execute_tool Edit call_l2a5uvic                                                                327µs
    ├── execute_tool Edit call_e0oa65mh                                                                344µs
    ├── execute_tool Write call_f2rdqs21                                                               747µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 7.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.0s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.0s
    ├── execute_tool Bash call_b9qi37lf                                                                 69ms [error: tool_error]
    ├── chat ollama_cloud/glm-5.3-flash                                                                 8.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.3s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             8.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.3s
    ├── execute_tool Grep call_079iyf2i                                                                 10ms
    ├── execute_tool Bash call_enpgwwbd                                                                18.4s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.6s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.6s
    ├── execute_tool Bash call_g0754wa0                                                                 6.2s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.0s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.0s
    ├── execute_tool Bash call_hf69dakd                                                                 1.8s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.6s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.6s
    ├── execute_tool Bash call_lbxl4osp                                                                  5ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 9.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       9.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     9.9s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             9.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 9.9s
    ├── execute_tool Bash call_3vj50obx                                                                  6ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 5.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.2s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.2s
    ├── execute_tool Bash call_sxko17w4                                                                476ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.8s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.8s
    ├── execute_tool Bash call_92vn897a                                                                 1.4s
    ├── execute_tool Write call_18jjezvo                                                               773µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.0s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.0s
    ├── execute_tool Bash call_cs85lb3q                                                                 1.7s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 5.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.7s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.7s
    ├── execute_tool Bash call_euvuo28x                                                                622ms
    ├── execute_tool Bash call_q37rwwxv                                                                730ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.8s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.8s
    ├── execute_tool Bash call_c3gray4x                                                                  5ms
    ├── execute_tool Bash call_0y8u1sm1                                                                  4ms
    ├── execute_tool Bash call_aiyyje5f                                                                653ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 7.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.4s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.4s
    ├── execute_tool TodoWrite call_mpqes9rp                                                            61µs
    ├── execute_tool Memory call_jjd16q5l                                                              152µs [error: tool_error]
    ├── chat ollama_cloud/glm-5.3-flash                                                                 9.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       9.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     9.7s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             9.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 9.7s
    ├── execute_tool Memory call_kga6rn6e                                                              722ms
    ╰── chat ollama_cloud/glm-5.3-flash                                                                 5.6s
        ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.6s
            ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.5s
                ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.5s
                    ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.5s
    
    Stats
    Tool Calls
    
    ╭───────────┬───────┬───────┬────────╮
    │ Tool      │ Calls │ Fail% │ Avg    │
    ├───────────┼───────┼───────┼────────┤
    │ Bash      │ 20    │ 5%    │ 1768ms │
    │ Read      │ 10    │ 10%   │ 169µs  │
    │ Edit      │ 4     │ 0%    │ 360µs  │
    │ TodoWrite │ 3     │ 0%    │ 68µs   │
    │ Grep      │ 3     │ 0%    │ 9ms    │
    │ MultiEdit │ 2     │ 50%   │ 466µs  │
    │ Write     │ 2     │ 0%    │ 752µs  │
    │ Memory    │ 2     │ 50%   │ 362ms  │
    ╰───────────┴───────┴───────┴────────╯
    
    Token Usage
    
    ╭────────────────────────────┬─────────┬────────┬────────────┬─────────┬──────╮
    │ Model                      │ Prompt  │ Cached │ Completion │ Total   │ Cost │
    ├────────────────────────────┼─────────┼────────┼────────────┼─────────┼──────┤
    │ ollama_cloud/glm-5.3-flash │ 1246053 │ 963200 │ 14297      │ 1260350 │ -    │
    ╰────────────────────────────┴─────────┴────────┴────────────┴─────────┴──────╯
    
    Sessions
    
    ╭───────────┬──────────┬──────────╮
    │ Execution │ Mode     │ Sessions │
    ├───────────┼──────────┼──────────┤
    │ headless  │ headless │ 1        │
    ╰───────────┴──────────┴──────────╯
    

    Triggered by edenreich · Infer Action · OSS

  4. inference-gateway-releaser commented on Sep 26, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.21.1 🎉

    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