Skip to content

Commit

Permalink
Version 2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
meta-d committed Oct 5, 2024
1 parent af6adb5 commit bc885e5
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions packages/server-ai/src/chat/chat-conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,19 @@ References documents:
)
).pipe(
map(({ event, data, ...rest }: any) => {
if (event === 'on_chat_model_stream') {
if (prevEvent === 'on_chat_model_stream') {
process.stdout.write('.')
if (Logger.isLevelEnabled('verbose')) {
if (event === 'on_chat_model_stream') {
if (prevEvent === 'on_chat_model_stream') {
process.stdout.write('.')
} else {
this.logger.verbose('on_chat_model_stream')
}
} else {
console.log('on_chat_model_stream')
if (prevEvent === 'on_chat_model_stream') {
process.stdout.write('\n')
}
this.logger.verbose(event)
}
} else {
console.log(event)
}
prevEvent = event
switch (event) {
Expand Down

0 comments on commit bc885e5

Please sign in to comment.