-
It is normal that the final response generated by AI is different. It might be a summary over previous ongoing thoughts.
-
The final response is created by forcing AI to call a taskComplete tool, as otherwise AI bots may give up prematurely generating incomplete response.
-
Thanks for the feedback. Is there a way to prevent the deletion of the previous feedback? I may be able to determine if it is "thinking" that is being generated at first, but I doubt it to be honest. There is a lot of useful information in the response that now disapears.
-
When I specifically instruct the AI user to not call taskComplete everything stays put
-
Maybe I can compare response length to determine which response should be used. But I doubt this also creates issues for other situations...
-
Maybe just being able to prevent the call to "taskComplete" might already be enough?
-
Without this, many models will just give up too early with empty or partial response. This is the reason why taskComplete tool call is added in the first place.
-
Name Previous Value Current Value Type
Bug
Question
-
I understand that. I was thinking along the lines of a checkbox in the AI settings that enables/disables the "taskComplete" method.
But it doesn't really matter. If I explicitly disallow the taskComplete call it works fine, so I have a workaround.
-
Name Previous Value Current Value Type
Question
Improvement
-
Name Previous Value Current Value Type
Improvement
Bug
-
@robin Looking at the code in OneDev and imagining the final prompt the model receives it could actually think that the taskComplete() tool should be called with a summary of what has been generated before (= "provide your final answer using taskComplete tool"). I am also using Mistral and I regularly see the good content being thrown away and only a summary of that content is shown as final answer. In my experience smaller models need very explicit prompts otherwise they "guess" wrong.
Also in PRs when adding AI with mistral as reviewer an "empty response" message is added as comment which indicates the model has called taskComplete() but didn't provide data. Maybe the streaming result before did had that data but only the taskComplete() tool call got an empty string.
-
LLM does tend to summarize previous responses when calling taskComplete tool. Will remove this tool and use the response instead. When getting empty response, telling LLM to retry seems able to solve most of the issues.
-
State changed as build OD-7256 (15.0.0) is successful
-
OneDev
changed state to 'Closed' 2 months ago
Previous Value Current Value Open
Closed
| Type |
Bug
|
| Priority |
Normal
|
| Assignee | |
| Affected Versions |
14.1.7
|
| Labels |
No labels
|
Hey everyone,
I just started experimenting with the AI Chat feature. I connected OneDev with OpenWebUI (with Ollama in the background) using the model
ministral-3:14b.I can ask my AI-user-buddy about my code, and it will provide me with an extensive answer with examples and everything, which is really great. However, I can see it streaming a really long response, and then when it's done, the chat window seems to refresh, and only a subset of information is left in the chat window.
This is a screenshot from when it was still streaming a response (watch the scrollbar):
Then after it's done streaming, the chat refreshes, and I'm left with this (again, watch the scrollbar and the content of the "final" section):
I'm not quite sure why I'm losing so much information or why the final content isn't the same as the streamed content.
Any ideas on why this might be happening?