We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31a80d6 commit a187fccCopy full SHA for a187fcc
packages/sdk/server-ai/src/api/chat/TrackedChat.ts
@@ -48,17 +48,14 @@ export class TrackedChat {
48
() => this.provider.invokeModel(allMessages),
49
);
50
51
- // Add the assistant response to the conversation history
52
- this.messages.push(response.message);
53
-
54
- // Start judge evaluations if configured
55
if (
56
this.aiConfig.judgeConfiguration?.judges &&
57
this.aiConfig.judgeConfiguration.judges.length > 0
58
) {
59
response.evaluations = this._evaluateWithJudges(this.messages, response);
60
}
61
+ this.messages.push(response.message);
62
return response;
63
64
0 commit comments