MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

About Session definition in Assistants Code Interpreter #123249

Closed kusuri-h closed 3 months ago

kusuri-h commented 4 months ago

https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/ai-services/openai/includes/assistants-studio.md#chat-session I want to know how Session is defined in the charging rules of Assistants Code Interpreter? Does simply creating a thread through the API count as starting a Session? POST https://YOUR_RESOURCE_NAME.openai.azure.com/openai/threads?api-version=2024-05-01-preview Does adding information to a thread through the API count as starting a Session? POST https://YOUR_RESOURCE_NAME.openai.azure.com/openai/threads/{thread_id}/messages?api-version=2024-05-01-preview


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

kusuri-h commented 4 months ago

If the thread has been created before and I add a message to the thread after an hour, does it count as starting a new Session?

TPavanBalaji commented 4 months ago

@kusuri-h It would be great if you could add a link to the documentation you are following for these steps? This would help us redirect the issue to the appropriate team. Thanks!

kusuri-h commented 4 months ago

Of course, this is the document I refer to https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/assistant#create-a-thread https://learn.microsoft.com/en-us/azure/ai-services/openai/assistants-reference-threads?tabs=python#create-a-thread https://learn.microsoft.com/en-us/azure/ai-services/openai/assistants-reference-messages?tabs=python#create-message About Create a thread Whether using python or REST to create a thread or create question to add to the thread, does it mean that a new session is created?

TPavanBalaji commented 4 months ago

@kusuri-h Thanks for your feedback! We will investigate and update as appropriate.

AjayBathini-MSFT commented 4 months ago

@kusuri-h Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.

mrbullwinkle commented 3 months ago

kusuri-h thanks for your question. Simply creating a thread/adding a message will not create a code interpreter session. A session will only begin once a run is triggered.

mrbullwinkle commented 3 months ago

We are winding down GitHub Issues as a feedback mechanism on learn.microsoft.com if you have any further questions we recommend using https://learn.microsoft.com/en-us/answers/tags/441/ai-services/

mrbullwinkle commented 3 months ago

please-close