Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.25k stars 4.58k forks source link

[OpenAI] [Scenario] Add conveniences for automatically polling runs like an LRO #42486

Open joseharriaga opened 6 months ago

joseharriaga commented 6 months ago

Runs are similar to LRO with the following statuses: queued, in_progress, completed, required_action, expired, cancelling, cancelled, and failed. In order to keep the status of the Run up to date, you have to periodically retrieve the Run object. Note that OpenAI plans to "add support for streaming to make this simpler in the near future".

Run lifecycle: https://platform.openai.com/docs/assistants/how-it-works/runs-and-run-steps

pallavit commented 6 months ago

Do we have a sense of whether they expect to make current LRO legacy when the streaming is available like they did with their older chat API or is there expectations that both will work simultaneously.

joseharriaga commented 5 months ago

Do we have a sense of whether they expect to make current LRO legacy when the streaming is available like they did with their older chat API or is there expectations that both will work simultaneously.

They will probably continue to support both.