Просмотр исходного кода

Update internal/llm/agent/agent.go

Co-authored-by: Andrey Nering <[email protected]>
Carlos Alexandro Becker 7 месяцев назад
Родитель
Сommit
e25a42c8f0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      internal/llm/agent/agent.go

+ 1 - 1
internal/llm/agent/agent.go

@@ -450,7 +450,7 @@ func (a *agent) createUserMessage(ctx context.Context, sessionID, content string
 func (a *agent) streamAndHandleEvents(ctx context.Context, sessionID string, msgHistory []message.Message) (message.Message, *message.Message, error) {
 	ctx = context.WithValue(ctx, tools.SessionIDContextKey, sessionID)
 	if !a.toolsDone.Load() {
-		return message.Message{}, nil, fmt.Errorf("Agent is still initializing, please wait a moment and try again")
+		return message.Message{}, nil, fmt.Errorf("agent is still initializing, please wait a moment and try again")
 	}
 	eventChan := a.provider.StreamResponse(ctx, msgHistory, a.tools)