Skip to content

Commit 2467f0c

Browse files
authored
chore: lint files (#4990)
1 parent fe75251 commit 2467f0c

File tree

1 file changed

+13
-11
lines changed
  • langchain-core/src/utils/testing

1 file changed

+13
-11
lines changed

langchain-core/src/utils/testing/index.ts

+13-11
Original file line numberDiff line numberDiff line change
@@ -219,22 +219,24 @@ export class FakeStreamingChatModel extends BaseChatModel {
219219
messages: BaseMessage[],
220220
_options: this["ParsedCallOptions"],
221221
_runManager?: CallbackManagerForLLMRun
222-
): Promise<ChatResult> {
222+
): Promise<ChatResult> {
223223
if (this.thrownErrorString) {
224224
throw new Error(this.thrownErrorString);
225225
}
226226

227227
const content = this.responses?.[0].content ?? messages[0].content;
228228
const generation: ChatResult = {
229-
generations: [{
230-
text: "",
231-
message: new AIMessage({
232-
content,
233-
})
234-
}]
235-
}
229+
generations: [
230+
{
231+
text: "",
232+
message: new AIMessage({
233+
content,
234+
}),
235+
},
236+
],
237+
};
236238

237-
return generation
239+
return generation;
238240
}
239241

240242
async *_streamResponseChunks(
@@ -253,7 +255,7 @@ export class FakeStreamingChatModel extends BaseChatModel {
253255
message: new AIMessageChunk({
254256
content,
255257
}),
256-
})
258+
});
257259
}
258260
} else {
259261
for (const _ of this.responses ?? messages) {
@@ -262,7 +264,7 @@ export class FakeStreamingChatModel extends BaseChatModel {
262264
message: new AIMessageChunk({
263265
content,
264266
}),
265-
})
267+
});
266268
}
267269
}
268270
}

0 commit comments

Comments
 (0)