enhance webui graphics

This commit is contained in:
Ettore Di Giacinto
2024-04-07 00:15:48 +02:00
parent 015b26096f
commit 8ceaab2ac1
4 changed files with 52 additions and 62 deletions

View File

@@ -30,7 +30,7 @@ type Agent struct {
currentReasoning string
currentState *action.StateResult
nextAction Action
currentConversation []openai.ChatCompletionMessage
currentConversation Messages
selfEvaluationInProgress bool
newConversations chan openai.ChatCompletionMessage
@@ -392,7 +392,7 @@ func (a *Agent) consumeJob(job *Job, role string) {
job.Result.Finish(fmt.Errorf("error renderTemplate: %w", err))
return
}
if !Messages(a.currentConversation).Exist(prompt) {
if !a.currentConversation.Exist(prompt) {
a.currentConversation = append([]openai.ChatCompletionMessage{
{
Role: "system",