llama-stack/docs
Ashwin Bharambe 2089427d60
Make all methods async def again; add completion() for meta-reference (#270)
PR #201 had made several changes while trying to fix issues with getting the stream=False branches of inference and agents API working. As part of this, it made a change which was slightly gratuitous. Namely, making chat_completion() and brethren "def" instead of "async def".

The rationale was that this allowed the user (within llama-stack) of this to use it as:

```
async for chunk in api.chat_completion(params)
```

However, it causes unnecessary confusion for several folks. Given that clients (e.g., llama-stack-apps) anyway use the SDK methods (which are completely isolated) this choice was not ideal. Let's revert back so the call now looks like:

```
async for chunk in await api.chat_completion(params)
```

Bonus: Added a completion() implementation for the meta-reference provider. Technically should have been another PR :)
2024-10-18 20:50:59 -07:00
..
openapi_generator Fix agents path in generate.py 2024-10-10 11:41:03 -04:00
resources Make all methods async def again; add completion() for meta-reference (#270) 2024-10-18 20:50:59 -07:00
cli_reference.md Update cli_reference.md 2024-10-08 15:32:06 -07:00
dog.jpg Support for Llama3.2 models and Swift SDK (#98) 2024-09-25 10:29:58 -07:00
getting_started.ipynb Fix broken rendering in Google Colab (#247) 2024-10-15 15:41:49 -07:00
getting_started.md getting started 2024-10-16 23:56:21 -07:00
license_header.txt Initial commit 2024-07-23 08:32:33 -07:00