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:
@@ -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.")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user