feat(sse): very rough events. Not used in the client yet

feat(sse): very rough events. Not used in the client yet
This commit is contained in:
2025-04-12 15:55:58 +01:00
parent cf7d5e0305
commit 47c871523d
10 changed files with 197 additions and 6 deletions

View File

@@ -142,6 +142,7 @@ func (client AgentClient) Request(req *AgentRequestBody) (AgentResponse, error)
}
if len(agentResponse.Choices) != 1 {
client.Log.Errorf("Received more than 1 choice from AI \n %s\n", string(response))
return AgentResponse{}, errors.New("Unsupported. We currently only accept 1 choice from AI.")
}