Skip to content

[BUG] requests backend: close() leaves the Session open and streaming calls ignore timeout #134

Closed

Description

Summary

The README "Creating a Client" section documents two client options that the default requests backend (use_httpx=False) does not honor. The httpx backend honors both:

  1. Context manager / close(). The README says with InferenceGatewayClient("http://localhost:8080/v1") as client: is used "to ensure the underlying HTTP client is closed". close() (inference_gateway/client.py lines 147-150) only does something when self.use_httpx is true. On the default backend it returns without calling self.session.close(), so the requests.Session and its pooled connections are never released.
  2. timeout. The README shows timeout=60.0 as a supported option, and the constructor documents it as "Request timeout in seconds". Non-streaming calls get the timeout from _make_request (lines 161-162). The streaming methods bypass _make_request and call self.session.post(..., stream=True) without a timeout (lines 482-487, 699-704, 1168-1173). As a result, create_chat_completion_stream, create_response_stream and create_message_stream have no timeout at all on the default backend. tests/test_client.py::test_create_chat_completion_stream_error currently asserts that this call is made without timeout.

On the httpx backend, close() closes the httpx.Client, and httpx.Client(timeout=timeout) also applies the timeout to streams.

Steps to Reproduce

  1. Run with InferenceGatewayClient("http://localhost:8080/v1") as client: client.list_models().
  2. After the block exits, len(client.session.adapters["http://"].poolmanager.pools) is still 1, because self.session.close() was never called.
  3. Create client = InferenceGatewayClient("http://localhost:8080/v1", timeout=5.0).
  4. Call client.create_chat_completion_stream(...) against an upstream that accepts the connection but stops sending data.

Expected Behavior

Leaving the with block (or calling close()) closes the requests.Session, just as it closes the httpx.Client. The configured timeout applies to streaming requests on the requests backend, as it does on the httpx backend.

Actual Behavior

On the default backend, close() does nothing, so the session's connections stay open after the context manager exits. Streaming requests are sent without a timeout, so a stalled upstream blocks the caller indefinitely instead of failing after timeout seconds.

Activity

  1. edenreich commented on Sep 25, 2026

    @edenreich
    Contributor

    @infer Can you fix this?

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

    @inference-gateway-maintainer
    ContributorAuthor

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

    Todos

    • Read client.py close() and streaming methods
    • Add issue to Roadmap board, Status=In progress
    • Create and push fix/issue-134 branch
    • Fix close() for requests backend
    • Add timeout to streaming requests calls
    • Update tests, run lint/tests, commit and push
    • Open draft PR, set board Status=QA

    Pull Request

    #138

    ✅ Infer Result: Success

    Fixed and pushed. PR: #138

    Summary of changes

    Bug 1 - close() was a no-op on the default backend (inference_gateway/client.py): close() now calls self.session.close() for the requests backend, so the requests.Session and its pooled connections are released when the context manager exits or close() is called - matching the httpx backend.

    Bug 2 - streaming calls ignored timeout: create_chat_completion_stream, create_response_stream and create_message_stream now pass timeout=self._timeout to self.session.post(..., stream=True), so the configured timeout applies to streaming requests on the default backend (as it already did for non-streaming calls via _make_request, and on httpx). A stalled upstream now fails after timeout seconds instead of blocking forever.

    Tests (tests/test_client.py):

    • Updated the five streaming call assertions (including test_create_chat_completion_stream_error, which previously asserted the call was made without timeout) to expect timeout=30.0
    • Added test_close_closes_http_backends verifying close() closes both the requests.Session and the httpx.Client

    Validation: task test - 42 passed, 1 xfailed (pre-existing strict xfail for schemas#29); task lint - black, isort, mypy all clean. No docs ticket needed (the README already documents both options; the fix makes the default backend comply with the documented behavior) and no downstream repos are affected.

    The issue is on the Roadmap 2026 board with Status = QA.

    Model: ollama_cloud/glm-5.3-flash · Exit Code: 0 · Duration: 4m 48s

    Tokens: 2,656,885 in · 21,543 out · 2,678,428 total (47 requests)

    Tool calls: 47 total · 100% success rate

    Traces
    Session: 1790376632-2b843ab7
    
    session (headless, success)                                                                        4m40s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.6s
    │       ╰── 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 TodoWrite call_wapbt012                                                            62µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.3s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.3s
    ├── execute_tool Read call_ldewx5ez                                                                253µs
    ├── 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.6s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.6s
    ├── execute_tool Grep call_3uw972ii                                                                  2ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.4s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.4s
    ├── execute_tool Read call_ays8qdjo                                                                218µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 8.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.0s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             8.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.0s
    ├── execute_tool Bash call_o07ohl2r                                                                454ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.5s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.5s
    ├── execute_tool Bash call_3cr3wxz4                                                                 1.4s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 5.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.1s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.1s
    ├── execute_tool Bash call_cn960kja                                                                970ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.0s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.0s
    ├── execute_tool Bash call_s3hy80g6                                                                  7ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.7s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.7s
    ├── execute_tool Read call_ynkmp8ch                                                                181µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.4s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.4s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.4s
    ├── execute_tool Read call_s1pf4u8l                                                                246µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.2s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.2s
    ├── execute_tool Grep call_upyser4l                                                                  2ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.9s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.9s
    ├── execute_tool Read call_8xlb7t7r                                                                195µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 7.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.3s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.3s
    ├── execute_tool Read call_hx1mqpbi                                                                156µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 8.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.6s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             8.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.6s
    ├── execute_tool Grep call_p26rrcpx                                                                  2ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.7s
    │       ╰── 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 Read call_y60th908                                                                148µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 8.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.5s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             8.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.5s
    ├── execute_tool Read call_ll967ff8                                                                205µs
    ├── 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 Read call_vgswu7z5                                                                177µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                11.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      11.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    11.9s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            11.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                11.9s
    ├── execute_tool TodoWrite call_bewmxw0k                                                            68µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.4s
    │   ╰── 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 MultiEdit call_zx2rrgf3                                                           770µs [error: tool_error]
    ├── chat ollama_cloud/glm-5.3-flash                                                                27.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      27.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    27.0s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            27.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                27.0s
    ├── execute_tool Read call_mzbnr1wl                                                                327µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 8.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.2s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             8.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.2s
    ├── execute_tool Grep call_72izdw53                                                                550µ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 Grep call_w6do4w99                                                                449µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 5.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.0s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.0s
    ├── execute_tool Grep call_z83j4bn0                                                                431µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.2s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.2s
    ├── execute_tool MultiEdit call_9vocxjrq                                                           811µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.1s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.1s
    ├── execute_tool Bash call_lhaklchn                                                                  5ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 8.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.7s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             8.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.7s
    ├── execute_tool MultiEdit call_p8fj1hh7                                                             1ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.7s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.7s
    ├── execute_tool Read call_4c4vsttk                                                                164µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.5s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.5s
    ├── execute_tool Edit call_ocz9lx4z                                                                993µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.6s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.6s
    ├── execute_tool TodoWrite call_cao0zskr                                                            68µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.4s
    │   ╰── 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_m1ksfduu                                                                 72ms [error: tool_error]
    ├── 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_vvw742fg                                                                17.8s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.6s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.6s
    ├── execute_tool Bash call_tfphtdmx                                                                 2.2s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.9s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.9s
    ├── execute_tool Bash call_dp315kvi                                                                 1.2s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.5s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.5s
    ├── execute_tool Bash call_s4z9tme8                                                                 5.4s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.5s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.5s
    ├── execute_tool Bash call_1hvd7ccw                                                                  6ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.6s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.6s
    ├── execute_tool Bash call_gllletka                                                                451ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.7s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.7s
    ├── execute_tool Bash call_4y2jrtjg                                                                 1.4s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.4s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.4s
    ├── execute_tool Write call_n7pvp0ot                                                               688µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.8s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.8s
    ├── execute_tool Bash call_uzuy9ogl                                                                 2.0s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 7.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.3s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.3s
    ├── execute_tool Bash call_g5h3qz23                                                                 1.3s
    ├── 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]     1.9s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.9s
    ├── execute_tool Bash call_7qv763eb                                                                  4ms
    ├── execute_tool Bash call_xi96rpv0                                                                304ms
    ├── 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.6s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.6s
    ├── execute_tool Bash call_3ak05ypo                                                                 1.3s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.9s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.9s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.9s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.9s
    ├── execute_tool Memory call_1daxaduv                                                               1.2s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.4s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.4s
    ├── execute_tool Memory call_4szgbfpa                                                              917ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.2s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.2s
    ├── execute_tool TodoWrite call_xkidzj5g                                                            69µs
    ╰── chat ollama_cloud/glm-5.3-flash                                                                 4.3s
        ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.3s
            ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.3s
                ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.3s
                    ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.3s
    
    Stats
    Tool Calls
    
    ╭───────────┬───────┬───────┬────────╮
    │ Tool      │ Calls │ Fail% │ Avg    │
    ├───────────┼───────┼───────┼────────┤
    │ Bash      │ 18    │ 6%    │ 2009ms │
    │ Read      │ 11    │ 0%    │ 205µs  │
    │ Grep      │ 6     │ 0%    │ 2ms    │
    │ TodoWrite │ 4     │ 0%    │ 66µs   │
    │ MultiEdit │ 3     │ 33%   │ 936µs  │
    │ Memory    │ 2     │ 0%    │ 1048ms │
    │ Edit      │ 1     │ 0%    │ 990µs  │
    │ Write     │ 1     │ 0%    │ 683µs  │
    ╰───────────┴───────┴───────┴────────╯
    
    Token Usage
    
    ╭────────────────────────────┬─────────┬─────────┬────────────┬─────────┬──────╮
    │ Model                      │ Prompt  │ Cached  │ Completion │ Total   │ Cost │
    ├────────────────────────────┼─────────┼─────────┼────────────┼─────────┼──────┤
    │ ollama_cloud/glm-5.3-flash │ 2656885 │ 2168320 │ 21543      │ 2678428 │ -    │
    ╰────────────────────────────┴─────────┴─────────┴────────────┴─────────┴──────╯
    
    Sessions
    
    ╭───────────┬──────────┬──────────╮
    │ Execution │ Mode     │ Sessions │
    ├───────────┼──────────┼──────────┤
    │ headless  │ headless │ 1        │
    ╰───────────┴──────────┴──────────╯
    

    Triggered by edenreich · Infer Action · OSS

  3. moved this from Todo to In progress in 2026on Sep 25, 2026
  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

    bugreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions