> ## Documentation Index
> Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# AsyncCompletions

> Async_Completions utilities for openai model integration and logging utilities.

[View module source on GitHub](https://github.com/maximhq/maxim-py/blob/main/maxim/logger/openai/async_completions.py)

## [AsyncStreamWrapper](/sdk/python/references/logger/openai/async_completions)

```python theme={null}
class AsyncStreamWrapper()
```

Async wrapper for OpenAI streaming chat completions that handles [Maxim](/sdk/python/references/maxim) logging.

This class wraps an async OpenAI stream to automatically log generation results
and trace information when the stream is fully consumed. It accumulates chunks
as they are yielded and processes the complete response for logging when the
stream ends.
