llama-stack-mirror/docs/static
Roy Belio c574db5f1d
fix(inference): AttributeError in streaming response cleanup (#4236)
This PR fixes issue #3185 
The code calls `await event_gen.aclose()` but OpenAI's `AsyncStream`
doesn't have an `aclose()` method - it has `close()` (which is async).
when clients cancel streaming requests, the server tries to clean up
with:

```python
await event_gen.aclose()  #  AsyncStream doesn't have aclose()!
```

But `AsyncStream` has never had a public `aclose()` method. The error
message literally tells us:

```
AttributeError: 'AsyncStream' object has no attribute 'aclose'. Did you mean: 'close'?
                                                                            ^^^^^^^^
```

## Verification
* Reproduction script
[`reproduce_issue_3185.sh`](https://gist.github.com/r-bit-rry/dea4f8fbb81c446f5db50ea7abd6379b)
can be used to verify the fix.
*   Manual checks, validation against original OpenAI library code
2025-12-14 07:51:09 -05:00
..
img docs: update OG image (#3669) 2025-10-03 10:22:54 -07:00
providers/vector_io docs: static content migration (#3535) 2025-09-24 14:08:50 -07:00
deprecated-llama-stack-spec.yaml feat!: Implement include parameter specifically for adding logprobs in the output message (#4261) 2025-12-11 11:11:21 -08:00
experimental-llama-stack-spec.yaml feat!: Implement include parameter specifically for adding logprobs in the output message (#4261) 2025-12-11 11:11:21 -08:00
llama-stack-spec.yaml fix(inference): AttributeError in streaming response cleanup (#4236) 2025-12-14 07:51:09 -05:00
openai-spec-2.3.0.yml feat(api): oasdiff OpenAI openAPI spec against ours (#3529) 2025-12-01 15:27:08 -08:00
remote_or_local.gif docs: static content migration (#3535) 2025-09-24 14:08:50 -07:00
safety_system.webp docs: static content migration (#3535) 2025-09-24 14:08:50 -07:00
site.webmanifest docs: add favicon and mobile styling (#3650) 2025-10-02 10:42:54 +02:00
stainless-llama-stack-spec.yaml fix(inference): AttributeError in streaming response cleanup (#4236) 2025-12-14 07:51:09 -05:00