Skip to content

Commit

Permalink
fix concurrency docs (#1269)
Browse files Browse the repository at this point in the history
need the async client
<!-- ELLIPSIS_HIDDEN -->

----

> [!IMPORTANT]
> Fix import statement in `concurrent-calls.mdx` to use
`baml_client.async_client` for async operations.
> 
>   - **Documentation**:
> - In `concurrent-calls.mdx`, update import statement from
`baml_client` to `baml_client.async_client` for correct async usage in
Python example.
> 
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup>
for 51ef0f9. It will automatically
update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
  • Loading branch information
Ben-Epstein authored Dec 23, 2024
1 parent 83e68f2 commit e9b4cb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fern/01-guide/04-baml-basics/concurrent-calls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ You can make concurrent `b.ClassifyMessage()` calls like so:
```python main.py
import asyncio

from baml_client import b
from baml_client.async_client import b
from baml_client.types import Category

async def main():
Expand Down Expand Up @@ -84,4 +84,4 @@ BAML Ruby (beta) does not currently support async/concurrent calls.
Please [contact us](/contact) if this is something you need.

</Tab>
</Tabs>
</Tabs>

0 comments on commit e9b4cb0

Please sign in to comment.