finish handling support if no reasoning is used

This commit is contained in:
mudler
2024-05-13 19:50:18 +02:00
parent fdd4af1042
commit 3f9b454276
3 changed files with 40 additions and 3 deletions

View File

@@ -6,6 +6,7 @@ import (
"fmt"
"net/http"
"os"
"strings"
"github.com/mudler/local-agent-framework/xlog"
@@ -246,7 +247,7 @@ func (a *App) Chat(pool *AgentPool) func(c *fiber.Ctx) error {
agentName := c.Params("name")
manager := pool.GetManager(agentName)
query := payload.Message
query := strings.Clone(payload.Message)
if query == "" {
_, _ = c.Write([]byte("Please enter a message."))
return nil