Closed jrbancroft closed 5 months ago
@jrbancroft what model version are you using?
We have a known issue with model version 1106 - https://github.com/Azure/azure-functions-openai-extension/tree/main/samples/assistant#supported-model-version-and-known-issues
Looks to be similar to #36
I tried with: gpt-4, 1106-preview gpt-35-turbo, 0301 (Default) and 1106
This issue exists with 1106 models, we have logged an issue for it #36
0301 is an older model and doesn't support function calling features.
Please visit - supported-model-version-and-known-issues
What language are you using?
Dotnet (OOP)
Expected Behavior
When running the AssistantSample I expected that when a given (AddToDo) skill was identified, executed and executed successfully it would add a single entry to the history for the execution of the skill.
Actual Behavior
The AssistantSample kept identifying the (AddToDo) skill and executing it over and over again. This was seen both in the chat history and the Azure Function Runtime console.
Host.json
{ "version": "2.0", "logging": { "logLevel": { "Microsoft.Azure.WebJobs.Extensions.OpenAI": "Information" } }, "extensions": { "openai": { "storageConnectionName": "AzureWebJobsStorage", "collectionName": "SampleChatState" } } }
Steps to Reproduce
Cloned Repo and run the AssistantSample as part of the examples.
Configured Open AI settings:
Model Name: gpt-4 Model Version: 1106-Preview
Using the demo.http file:
PUT http://localhost:7071/api/assistants/assistant123 Returns 201 Created:
GET http://localhost:7071/api/assistants/assistant123?timestampUTC=2023-01-01T00:00:00Z Returns 200 OK:
POST http://localhost:7071/api/assistants/assistant123?message=Oh,%20and%20to%20take%20out%20the%20trash Returns 200 OK:
The task to take out the trash has been added to your to-do list.
Looking at the chat history you can see that it appears that the skill has been executed successfully but it has been repeated more times than it should have.
Relevant code being tried
Relevant log output
Where are you facing this problem?
Local - Core Tools
Additional Information
I have tried to build out other skills where it just returns a string as a result, however it too gets called over and over. My concern would be that if the skill is calling out to a REST service or something which is rate-limited or charged based on number of calls with an API call, the repetitive nature of the issue could cause problems.