Closed kusuri-h closed 3 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?
@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!
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?
@kusuri-h Thanks for your feedback! We will investigate and update as appropriate.
@kusuri-h Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.
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.
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/
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.