llama-stack/llama_stack/apis
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
..
agents Make all methods async def again; add completion() for meta-reference (#270) 2024-10-18 20:50:59 -07:00
batch_inference Remove "routing_table" and "routing_key" concepts for the user (#201) 2024-10-10 10:24:13 -07:00
common API Updates (#73) 2024-09-17 19:51:35 -07:00
dataset API Updates (#73) 2024-09-17 19:51:35 -07:00
evals API Updates (#73) 2024-09-17 19:51:35 -07:00
inference Make all methods async def again; add completion() for meta-reference (#270) 2024-10-18 20:50:59 -07:00
inspect Remove "routing_table" and "routing_key" concepts for the user (#201) 2024-10-10 10:24:13 -07:00
memory Remove "routing_table" and "routing_key" concepts for the user (#201) 2024-10-10 10:24:13 -07:00
memory_banks [bugfix] fix case for agent when memory bank registered without specifying provider_id (#264) 2024-10-17 17:28:17 -07:00
models Remove "routing_table" and "routing_key" concepts for the user (#201) 2024-10-10 10:24:13 -07:00
post_training API Updates (#73) 2024-09-17 19:51:35 -07:00
reward_scoring API Updates (#73) 2024-09-17 19:51:35 -07:00
safety Remove "routing_table" and "routing_key" concepts for the user (#201) 2024-10-10 10:24:13 -07:00
shields Remove "routing_table" and "routing_key" concepts for the user (#201) 2024-10-10 10:24:13 -07:00
synthetic_data_generation API Updates (#73) 2024-09-17 19:51:35 -07:00
telemetry Remove "routing_table" and "routing_key" concepts for the user (#201) 2024-10-10 10:24:13 -07:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00